Skip to content

Commit 2fae387

Browse files
committed
ci: update tests workflow to use centralised reusable workflow
1 parent 181f581 commit 2fae387

File tree

1 file changed

+19
-35
lines changed

1 file changed

+19
-35
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: "Tests"
22

33
on:
44
pull_request:
@@ -9,45 +9,29 @@ on:
99
- master
1010

1111
concurrency:
12-
# Skip intermediate builds: always.
13-
# Cancel intermediate builds: only if it is a pull request build.
1412
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
1614

1715
jobs:
18-
test:
19-
runs-on: ubuntu-latest
16+
tests:
17+
name: "Tests"
2018
strategy:
2119
fail-fast: false
2220
matrix:
21+
version:
22+
- "1"
23+
- "lts"
2324
project:
2425
- '.'
25-
- lib/DAEProblemLibrary
26-
- lib/DDEProblemLibrary
27-
- lib/JumpProblemLibrary
28-
- lib/ODEProblemLibrary
29-
- lib/SDEProblemLibrary
30-
- lib/BVProblemLibrary
31-
- lib/NonlinearProblemLibrary
32-
version:
33-
- '1'
34-
steps:
35-
- uses: actions/checkout@v4
36-
- uses: julia-actions/setup-julia@v2
37-
with:
38-
version: ${{ matrix.version }}
39-
- uses: julia-actions/cache@v2
40-
- uses: julia-actions/julia-buildpkg@v1
41-
with:
42-
project: ${{ matrix.project }}
43-
- uses: julia-actions/julia-runtest@v1
44-
with:
45-
project: ${{ matrix.project }}
46-
- uses: julia-actions/julia-processcoverage@v1
47-
with:
48-
directories: ${{ matrix.project }}/src
49-
- uses: codecov/codecov-action@v4
50-
with:
51-
files: lcov.info
52-
token: ${{ secrets.CODECOV_TOKEN }}
53-
fail_ci_if_error: true
26+
- 'lib/DAEProblemLibrary'
27+
- 'lib/DDEProblemLibrary'
28+
- 'lib/JumpProblemLibrary'
29+
- 'lib/ODEProblemLibrary'
30+
- 'lib/SDEProblemLibrary'
31+
- 'lib/BVPProblemLibrary'
32+
- 'lib/NonlinearProblemLibrary'
33+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
34+
with:
35+
julia-version: "${{ matrix.version }}"
36+
project: "${{ matrix.project }}"
37+
secrets: "inherit"

0 commit comments

Comments
 (0)