Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Jan 8, 2025
1 parent 5a3b155 commit 58ccb57
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@ 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 }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
version:
- '1.6'
- 'min'
- '1'
- nightly
os:
- ubuntu-latest
- macOS-latest
Expand All @@ -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:
Expand Down

0 comments on commit 58ccb57

Please sign in to comment.