-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GAP distro tests #1067
Open
lgoettgens
wants to merge
11
commits into
oscar-system:master
Choose a base branch
from
lgoettgens:lg/CI-distro
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add GAP distro tests #1067
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
482def1
Add `GAP.Packages.build(name)`
lgoettgens b1b36f6
Add to docs
lgoettgens 4cc5d99
Add GAP distro tests
lgoettgens 6a477ae
Try with matrix
lgoettgens c22759e
Only test a subset of packages (to reduce CI usage during testing)
lgoettgens eff8827
Add `GAP.Packages.test`
lgoettgens 57dadc1
Reduce triggers
lgoettgens 5e51614
Add docs for `GAP.Packages.test`
lgoettgens 0338bed
Fix `GAP.Packages.test`
lgoettgens 1442f18
Add and use `GAP.Packages.build_recursive`
lgoettgens c5a9136
Fix: CI should fail for build failures
lgoettgens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Test GAP package distro | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
# Every Monday at 3:08 AM UTC | ||
- cron: '8 3 * * 1' | ||
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 | ||
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: "Build package" | ||
uses: julia-actions/julia-buildpkg@v1 | ||
- name: Get list of GAP packages | ||
id: set-matrix | ||
run: julia --project=. -e ' | ||
using Artifacts; | ||
output = sprint(print, "gap-packages=", filter(startswith(r"d|f"), readdir(artifact"gap_packages"))); | ||
println(output); | ||
open(ENV["GITHUB_OUTPUT"], "a") do io; | ||
println(io, output); | ||
end;' | ||
|
||
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_recursive("${{ matrix.gap-package }}") || exit(1)' | ||
- name: "Run GAP package tests" | ||
run: julia --color=yes --project=. -e 'using GAP, Test; GAP.Packages.test("${{ matrix.gap-package }}")' |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this shouldn't run on every commit in every PR, as it produces >150 jobs. But I have kept it here for now such that in this PR, we can already see it running.