Add GAP distro tests #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test GAP package distro | ||
# TODO: reduce the number of triggers | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'release-*' | ||
tags: '*' | ||
pull_request: | ||
workflow_dispatch: | ||
concurrency: | ||
# group by workflow and ref; the last slightly strange component ensures that for pull | ||
# requests, we limit to 1 concurrent job, but for the default repository branch we don't | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }} | ||
# Cancel intermediate builds, but only if it is a pull request build. | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
jobs: | ||
generate-matrix: | ||
runs_on: ubuntu-latest | ||
Check failure on line 22 in .github/workflows/CI-distro.yml GitHub Actions / Test GAP package distroInvalid workflow file
|
||
outputs: | ||
gap-packages: ${{ steps.set-matrix.outputs.gap-packages }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1' | ||
- name: "Cache artifacts" | ||
uses: julia-actions/cache@v2 | ||
- name: Get list of GAP packages | ||
id: set-matrix | ||
run: julia --project=. -e 'using Artifacts; println("gap-packages=", readdir(artifact"gap_packages"))' | ||
test: | ||
name: ${{ matrix.gap-package }} | ||
needs: generate-matrix | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
continue-on-error: ${{ matrix.julia-version == 'nightly' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
julia-version: | ||
- '1' | ||
julia-arch: | ||
- x64 | ||
os: | ||
- ubuntu-latest | ||
gap-package: ${{fromJSON(needs.generate-matrix.outputs.gap-packages)}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
arch: ${{ matrix.julia-arch }} | ||
- name: "Cache artifacts" | ||
uses: julia-actions/cache@v2 | ||
with: | ||
cache-scratchspaces: false | ||
- name: "Build package" | ||
uses: julia-actions/julia-buildpkg@v1 | ||
- name: "Build GAP package" | ||
run: julia --color=yes --project=. -e 'using GAP; GAP.Packages.build("${{ matrix.gap-package }}")' | ||
- name: "Run GAP package tests" | ||
run: julia --color=yes --project=. -e 'using GAP; GAP.Globals.TestPackage(GAP.Obj("${{ matrix.gap-package }}"))' |