From 58ccb573f683fff24f552b68119f5c934f46872d Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 8 Jan 2025 15:30:04 +0000 Subject: [PATCH] Update CI --- .github/workflows/CI.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 06ff8ad9..b88939b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,6 +6,16 @@ on: - master pull_request: +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +# Cancel existing tests on the same PR if a new commit is added to a pull request +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: test: runs-on: ${{ matrix.os }} @@ -13,9 +23,8 @@ jobs: strategy: matrix: version: - - '1.6' + - 'min' - '1' - - nightly os: - ubuntu-latest - macOS-latest @@ -39,25 +48,31 @@ jobs: arch: x64 num_threads: 1 coverage: true + steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 - with: - cache-packages: "false" # caching Conda.jl causes precompilation error + + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest env: JULIA_NUM_THREADS: ${{ matrix.num_threads }} + - uses: julia-actions/julia-processcoverage@v1 if: matrix.coverage + - uses: codecov/codecov-action@v1 if: matrix.coverage with: file: lcov.info + - uses: coverallsapp/github-action@master if: matrix.coverage with: