|
1 | | -name: CI |
| 1 | +name: "Tests" |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | pull_request: |
|
9 | 9 | - master |
10 | 10 |
|
11 | 11 | concurrency: |
12 | | - # Skip intermediate builds: always. |
13 | | - # Cancel intermediate builds: only if it is a pull request build. |
14 | 12 | 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*' }} |
16 | 14 |
|
17 | 15 | jobs: |
18 | | - test: |
19 | | - runs-on: ubuntu-latest |
| 16 | + tests: |
| 17 | + name: "Tests" |
20 | 18 | strategy: |
21 | 19 | fail-fast: false |
22 | 20 | matrix: |
| 21 | + version: |
| 22 | + - "1" |
| 23 | + - "lts" |
23 | 24 | project: |
24 | 25 | - '.' |
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