Skip to content

Add GAP distro tests #8

Add GAP distro tests

Add GAP distro tests #8

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Test GAP package distro

Invalid workflow file

The workflow is not valid. .github/workflows/CI-distro.yml (Line: 22, Col: 5): Unexpected value 'runs_on' .github/workflows/CI-distro.yml (Line: 22, Col: 5): Required property is missing: runs-on
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 }}"))'