Skip to content

Fix workspaces

Fix workspaces #1830

Workflow file for this run

name: "Standard tests"
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
- "stable-*.*"
schedule:
# Every day at 3:15 AM UTC
- cron: '15 3 * * *'
jobs:
test:
name: "${{ matrix.gap-branch }} / ${{ matrix.os }} / ${{ matrix.ABI }}-bit"
runs-on: "${{ matrix.os }}-latest"
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- macos
gap-branch:
- master
- stable-4.12
ABI:
- 64
steps:
- uses: actions/checkout@v3
- name: "Install dependencies (macOS only!)"
if: ${{ runner.os == 'macOS' }}
run: brew install automake
# Setup ccache, to speed up repeated compilation of the same binaries
# (i.e., GAP and the packages)
- name: "Setup ccache"
if: ${{ runner.os != 'Windows' }}
uses: Chocobo1/setup-ccache-action@v1
with:
update_packager_index: false
override_cache_key: ${{ runner.os }}-${{ matrix.gap-branch }}-${{ matrix.ABI }}-${{ github.ref }}
override_cache_key_fallback: ${{ runner.os }}-${{ matrix.gap-branch }}-${{ matrix.ABI }}
- name: "Install GAP and clone/compile necessary packages"
uses: gap-actions/setup-gap@v2
env:
# We don't understand why this is necessary. Hopefully it can be
# removed in the fullness of time.
LDFLAGS: "-pthread"
with:
GAP_PKGS_TO_BUILD: "digraphs io orb datastructures profiling"
GAPBRANCH: ${{ matrix.gap-branch }}
ABI: ${{ matrix.ABI }}
- name: "Build Semigroups"
uses: gap-actions/build-pkg@v1
with:
ABI: ${{ matrix.ABI }}
CONFIGFLAGS: --disable-hpcombi
# TODO if/when:
# https://github.com/gap-actions/run-pkg-tests/pull/24
# is merged, or something equivalent, then remove the script ci/run-tests.sh, and use the save/load.g files as commented out below
- name: "Run Semigroups packages' workspace tests"
with:
ABI: ${{ matrix.ABI }}
run: ci/run-tests.sh

Check failure on line 64 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Standard tests

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 64, Col: 9): Unexpected value 'run' .github/workflows/ci.yml (Line: 61, Col: 9): Required property is missing: uses
# - name: "Run Semigroups package's tst/workspaces/save.g"
# uses: gap-actions/run-pkg-tests@v2
# with:
# GAP_TESTFILE: "tst/workspaces/save.g"
# - name: "Run Semigroups package's tst/workspaces/load.g"
# uses: gap-actions/run-pkg-tests@v2
# with:
# GAP_TESTFILE: "tst/workspaces/load.g"
# GAP_FLAGS: "-L tst/workspaces/test-output.w"
- name: "Run Semigroups package's tst/teststandard.g"
uses: gap-actions/run-pkg-tests@v2
- uses: gap-actions/process-coverage@v2
- uses: codecov/codecov-action@v2
- name: "Run GAP's tst/testinstall.g"
uses: gap-actions/run-pkg-tests@v2
with:
GAP_TESTFILE: "ci/run-gap-testinstall.g"
test-cygwin:
name: "master / cygwin / 64-bit"
runs-on: windows-latest
env:
CHERE_INVOKING: 1
steps:
- uses: actions/checkout@v2
- name: "Setup cygwin"
uses: gap-actions/setup-cygwin@v1
- name: "Setup GAP for cygwin"
uses: gap-actions/setup-gap@cygwin-v2
with:
GAP_PKGS_TO_BUILD: "digraphs io orb datastructures profiling"
- name: "Build Semigroups"
uses: gap-actions/build-pkg@cygwin-v1
with:
CONFIGFLAGS: --disable-fmt # to try and speed up compilation
- uses: gap-actions/run-pkg-tests@cygwin-v2
with:
GAP_TESTFILE: "tst/teststandard.g"
- uses: gap-actions/process-coverage@cygwin-v2
- uses: codecov/codecov-action@v2