Overhaul of Algebraic Statistics #9034
Workflow file for this run
This file contains hidden or 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: Run CI without experimental | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'release-*' | |
| paths-ignore: | |
| - '*.md' | |
| - '.github/workflows/changelog.yml' | |
| - 'dev/releases/release_notes.py' | |
| pull_request: | |
| paths-ignore: | |
| - '*.md' | |
| - '.github/workflows/changelog.yml' | |
| - 'dev/releases/release_notes.py' | |
| workflow_dispatch: | |
| # needed to allow julia-actions/cache to delete old caches that it has created | |
| permissions: | |
| actions: write | |
| contents: read | |
| 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 master branch we don't | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} | |
| # Cancel intermediate builds, but only if it is a pull request build. | |
| cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
| # For local testing, run `ln -s NoExperimental_whitelist_.jl experimental/NoExperimental_whitelist.jl` to initialize | |
| # and `rm experimental/NoExperimental_whitelist.jl` for cleanup | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 150 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| group: [ 'short', 'long' ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: "Set up Julia" | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: '1.10' | |
| - uses: julia-actions/cache@v2 | |
| id: julia-cache | |
| with: | |
| cache-name: julia-cache;workflow=${{ github.workflow }};julia=1.10;arch=${{ runner.arch }} | |
| include-matrix: false | |
| - name: "Symlink NoExperimental_whitelist.jl" | |
| run: ln -s NoExperimental_whitelist_.jl experimental/NoExperimental_whitelist.jl | |
| - name: "Set test subgroup" | |
| if: ${{ matrix.group }} != '' | |
| run: echo "OSCAR_TEST_SUBSET=${{matrix.group}}" >> $GITHUB_ENV | |
| - name: "Build package" | |
| uses: julia-actions/julia-buildpkg@v1 | |
| - name: "Run tests" | |
| uses: julia-actions/julia-runtest@latest | |
| - name: Save Julia depot cache on cancel or failure | |
| id: julia-cache-save | |
| if: cancelled() || failure() | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| ${{ steps.julia-cache.outputs.cache-paths }} | |
| key: ${{ steps.julia-cache.outputs.cache-key }} | |
| doctest: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 150 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: "Set up Julia" | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: '1.10' | |
| - uses: julia-actions/cache@v2 | |
| id: julia-cache | |
| with: | |
| cache-name: julia-cache;workflow=${{ github.workflow }};julia=1.10;arch=${{ runner.arch }} | |
| include-matrix: false | |
| - name: "Symlink NoExperimental_whitelist.jl" | |
| run: ln -s NoExperimental_whitelist_.jl experimental/NoExperimental_whitelist.jl | |
| - name: "Build package" | |
| uses: julia-actions/julia-buildpkg@v1 | |
| - name: "Setup package" | |
| run: | | |
| julia --project=docs --color=yes -e ' | |
| using Pkg | |
| Pkg.develop(PackageSpec(path=pwd())) | |
| Pkg.instantiate()' | |
| - name: "Run doctests" | |
| run: | | |
| julia \ | |
| --project=docs --color=yes -e' | |
| using Documenter | |
| include("docs/documenter_helpers.jl") | |
| using Oscar | |
| DocMeta.setdocmeta!(Oscar, :DocTestSetup, Oscar.doctestsetup(); recursive = true) | |
| doctest(Oscar; doctestfilters=Oscar.doctestfilters())' | |
| - name: Save Julia depot cache on cancel or failure | |
| id: julia-cache-save | |
| if: cancelled() || failure() | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| ${{ steps.julia-cache.outputs.cache-paths }} | |
| key: ${{ steps.julia-cache.outputs.cache-key }} |