Skip to content

Commit 382363a

Browse files
Update CI: Test min, lts, and 1; update codecov; use Julia cache action (#730)
Co-authored-by: Kristoffer Carlsson <[email protected]>
1 parent f00147e commit 382363a

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: CI
2+
23
on:
34
pull_request:
45
branches:
@@ -8,44 +9,39 @@ on:
89
- master
910
tags: '*'
1011
workflow_dispatch:
12+
13+
# needed to allow julia-actions/cache to delete old caches that it has created
14+
permissions:
15+
actions: write
16+
contents: read
17+
1118
jobs:
1219
test:
13-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
20+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
1421
runs-on: ${{ matrix.os }}
15-
continue-on-error: ${{ matrix.version == 'nightly' }}
1622
strategy:
1723
fail-fast: false
1824
matrix:
1925
version:
20-
- '1.6'
26+
- 'min'
27+
- 'lts'
2128
- '1'
22-
# - 'nightly'
2329
os:
2430
- ubuntu-latest
25-
arch:
26-
- x64
2731
steps:
2832
- uses: actions/checkout@v4
2933
- uses: julia-actions/setup-julia@v2
3034
with:
3135
version: ${{ matrix.version }}
32-
arch: ${{ matrix.arch }}
33-
- uses: actions/cache@v4
34-
env:
35-
cache-name: cache-artifacts
36-
with:
37-
path: ~/.julia/artifacts
38-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39-
restore-keys: |
40-
${{ runner.os }}-test-${{ env.cache-name }}-
41-
${{ runner.os }}-test-
42-
${{ runner.os }}-
36+
- uses: julia-actions/cache@v2
4337
- uses: julia-actions/julia-buildpkg@v1
4438
- uses: julia-actions/julia-runtest@v1
4539
- uses: julia-actions/julia-processcoverage@v1
4640
- uses: codecov/codecov-action@v5
4741
with:
4842
files: lcov.info
43+
token: ${{ secrets.CODECOV_TOKEN }}
44+
fail_ci_if_error: true
4945
docs:
5046
name: Documentation
5147
runs-on: ubuntu-latest
@@ -54,6 +50,7 @@ jobs:
5450
- uses: julia-actions/setup-julia@v2
5551
with:
5652
version: '1'
53+
- uses: julia-actions/cache@v2
5754
- run: |
5855
julia --project=docs -e '
5956
using Pkg

0 commit comments

Comments
 (0)