ci: update Jet version to 0.10, use Julia 1.12 #542
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: ["*"] | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 * * 1' # runs 00:00 UTC on every Monday | |
| concurrency: | |
| # Skip intermediate builds: always. | |
| # Cancel intermediate builds: only if it is a pull request build. | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
| jobs: | |
| test: | |
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Run the CI on: lowest supported, LTS, latest, and nightly. | |
| # Note that we can't run too many parallel CI jobs, since the live | |
| # tests will run into the platform job limit. | |
| version: | |
| - "1.6" | |
| - "1.10" | |
| - "1" | |
| - "nightly" | |
| os: | |
| - ubuntu-latest | |
| include: | |
| - os: windows-latest | |
| version: "1" | |
| - os: macos-latest | |
| version: "1" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| - uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-artifacts | |
| with: | |
| path: ~/.julia/artifacts | |
| key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-test-${{ env.cache-name }}- | |
| ${{ runner.os }}-test- | |
| ${{ runner.os }}- | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - uses: julia-actions/julia-runtest@v1 | |
| - name: Run live tests | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| shell: julia --color=yes --project {0} | |
| run: | | |
| import Pkg | |
| Pkg.test(test_args=["--live"], coverage=true) | |
| env: | |
| JULIAHUB_SERVER: ${{ secrets.JULIAHUB_SERVER }} | |
| JULIAHUB_TOKEN: ${{ secrets.JULIAHUB_TOKEN }} | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| aqua: | |
| name: Aqua | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: "1" | |
| - name: "Aqua.test_all(JuliaHub)" | |
| shell: julia --color=yes {0} | |
| run: | | |
| import Pkg | |
| Pkg.activate(temp=true) | |
| Pkg.add(name="Aqua", version="0.8") | |
| Pkg.develop(path=".") | |
| include(joinpath(pwd(), "test", "aqua.jl")) | |
| jet: | |
| name: JET | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: "1" | |
| - name: "Install dependencies" | |
| shell: julia --color=yes {0} | |
| run: | | |
| import Pkg | |
| Pkg.activate("juliahub-jet", shared=true) | |
| Pkg.add(name="JET", version="0.11") | |
| Pkg.develop(path=".") | |
| - name: "JET.test_package(..., mode=:basic) [informational]" | |
| run: julia --color=yes --project=@juliahub-jet test/jet.jl | |
| env: | |
| JULIAHUB_TEST_JET: basic | |
| continue-on-error: true | |
| - name: "JET.test_package() w/ custom filtering" | |
| run: julia --color=yes --project=@juliahub-jet test/jet.jl | |
| env: | |
| JULIAHUB_TEST_JET: custom-filtering | |
| docs: | |
| name: Documentation | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read # Required when using `push_preview=true` | |
| statuses: write # Optional, used to report documentation build statuses | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: "1" | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - name: Set up documentation environment | |
| run: make docs-manifest | |
| - name: Build & deploy the documentation | |
| run: make docs | |
| env: | |
| DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| doctest: | |
| name: Doctest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| # we'll restrict doctests to a minor version, to avoid failures due | |
| # to printing differences between Julia (minor) versions | |
| version: "1.11" | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - name: Set up documentation environment | |
| run: make docs-manifest | |
| - name: Check doctests | |
| run: make check-doctests | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |