Skip to content

Commit ae999cc

Browse files
committed
ci: update tests workflow to use centralised reusable workflow
1 parent 1aa4efc commit ae999cc

File tree

1 file changed

+19
-34
lines changed

1 file changed

+19
-34
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: CI
1+
name: "Tests"
2+
23
on:
34
pull_request:
45
branches:
@@ -10,40 +11,24 @@ on:
1011
- master
1112
paths-ignore:
1213
- 'docs/**'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
18+
1319
jobs:
14-
test:
15-
runs-on: ubuntu-latest
20+
tests:
21+
name: "Tests"
1622
strategy:
23+
fail-fast: false
1724
matrix:
18-
group:
19-
- Core
20-
- Downstream
2125
version:
22-
- '1'
23-
steps:
24-
- uses: actions/checkout@v4
25-
- uses: julia-actions/setup-julia@v2
26-
with:
27-
version: ${{ matrix.version }}
28-
- uses: actions/cache@v4
29-
env:
30-
cache-name: cache-artifacts
31-
with:
32-
path: ~/.julia/artifacts
33-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
34-
restore-keys: |
35-
${{ runner.os }}-test-${{ env.cache-name }}-
36-
${{ runner.os }}-test-
37-
${{ runner.os }}-
38-
- uses: julia-actions/julia-buildpkg@v1
39-
- uses: julia-actions/julia-runtest@v1
40-
env:
41-
GROUP: ${{ matrix.group }}
42-
- uses: julia-actions/julia-processcoverage@v1
43-
with:
44-
directories: src,ext
45-
- uses: codecov/codecov-action@v4
46-
with:
47-
file: lcov.info
48-
token: ${{ secrets.CODECOV_TOKEN }}
49-
fail_ci_if_error: true
26+
- "1"
27+
- "1.6"
28+
group:
29+
- "Core"
30+
- "Downstream"
31+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
32+
with:
33+
julia-version: "${{ matrix.version }}"
34+
secrets: "inherit"

0 commit comments

Comments
 (0)