Skip to content

Commit 331cee5

Browse files
Update CI.yml
1 parent 4138205 commit 331cee5

File tree

1 file changed

+27
-39
lines changed

1 file changed

+27
-39
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,40 @@
1-
name: CI
1+
name: "Tests"
2+
23
on:
34
pull_request:
45
branches:
56
- master
7+
- 'release-'
8+
- v10
9+
paths-ignore:
10+
- 'docs/**'
611
push:
712
branches:
813
- master
14+
paths-ignore:
15+
- 'docs/**'
16+
- 'benchmark/**'
17+
18+
concurrency:
19+
# Skip intermediate builds: always, but for the master branch.
20+
# Cancel intermediate builds: always, but for the master branch.
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
23+
924
jobs:
10-
test:
11-
runs-on: ubuntu-latest
25+
tests:
26+
name: "Tests"
1227
strategy:
1328
fail-fast: false
1429
matrix:
30+
version:
31+
- "1"
32+
- "lts"
33+
- "pre"
1534
group:
1635
- CPU
17-
version:
18-
- 'lts'
19-
- '1'
20-
- 'pre'
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: julia-actions/setup-julia@v2
24-
with:
25-
version: ${{ matrix.version }}
26-
- uses: actions/cache@v4
27-
env:
28-
cache-name: cache-artifacts
29-
with:
30-
path: ~/.julia/artifacts
31-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32-
restore-keys: |
33-
${{ runner.os }}-test-${{ env.cache-name }}-
34-
${{ runner.os }}-test-
35-
${{ runner.os }}-
36-
- uses: julia-actions/julia-runtest@v1
37-
with:
38-
coverage: false
39-
check_bounds: auto
40-
env:
41-
GROUP: ${{ matrix.group }}
42-
- uses: julia-actions/julia-processcoverage@v1
43-
- uses: codecov/codecov-action@v5
44-
with:
45-
token: ${{ secrets.CODECOV_TOKEN }}
46-
file: lcov.info
47-
fail_ci_if_error: false
48-
if: matrix.group == 'CPU'
49-
with:
50-
files: lcov.info
51-
token: ${{ secrets.CODECOV_TOKEN }}
52-
fail_ci_if_error: false
36+
uses: "SciML/.github/.github/workflows/tests.yml@master"
37+
with:
38+
julia-version: "${{ matrix.version }}"
39+
group: "${{ matrix.group }}"
40+
secrets: "inherit"

0 commit comments

Comments
 (0)