Skip to content

Commit de219e9

Browse files
fix CI
1 parent 2a0f340 commit de219e9

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: CI (SCCNonlinearSolve)
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- "lib/SCCNonlinearSolve/**"
9+
- ".github/workflows/CI_SCCNonlinearSolve.yml"
10+
- "lib/NonlinearSolveBase/**"
11+
- "lib/SciMLJacobianOperators/**"
12+
push:
13+
branches:
14+
- master
15+
16+
concurrency:
17+
# Skip intermediate builds: always.
18+
# Cancel intermediate builds: only if it is a pull request build.
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
21+
22+
jobs:
23+
test:
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
version:
29+
- "1.10"
30+
- "1"
31+
os:
32+
- ubuntu-latest
33+
- macos-latest
34+
- windows-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: julia-actions/setup-julia@v2
38+
with:
39+
version: ${{ matrix.version }}
40+
- uses: actions/cache@v4
41+
env:
42+
cache-name: cache-artifacts
43+
with:
44+
path: ~/.julia/artifacts
45+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
46+
restore-keys: |
47+
${{ runner.os }}-test-${{ env.cache-name }}-
48+
${{ runner.os }}-test-
49+
${{ runner.os }}-
50+
- name: "Install Dependencies and Run Tests"
51+
run: |
52+
import Pkg
53+
Pkg.Registry.update()
54+
# Install packages present in subdirectories
55+
dev_pks = Pkg.PackageSpec[]
56+
for path in ("lib/SciMLJacobianOperators", "lib/NonlinearSolveBase")
57+
push!(dev_pks, Pkg.PackageSpec(; path))
58+
end
59+
Pkg.develop(dev_pks)
60+
Pkg.instantiate()
61+
Pkg.test(; coverage="user")
62+
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=lib/SCCNonlinearSolve {0}
63+
- uses: julia-actions/julia-processcoverage@v1
64+
with:
65+
directories: lib/SCCNonlinearSolve/src,lib/NonlinearSolveBase/src,lib/NonlinearSolveBase/ext,lib/SciMLJacobianOperators/src
66+
- uses: codecov/codecov-action@v4
67+
with:
68+
file: lcov.info
69+
token: ${{ secrets.CODECOV_TOKEN }}
70+
verbose: true
71+
fail_ci_if_error: false
72+
73+
downgrade:
74+
runs-on: ubuntu-latest
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
version:
79+
- "1.10"
80+
steps:
81+
- uses: actions/checkout@v4
82+
- uses: julia-actions/setup-julia@v2
83+
with:
84+
version: ${{ matrix.version }}
85+
- uses: julia-actions/julia-downgrade-compat@v1
86+
with:
87+
skip: NonlinearSolveBase, SciMLJacobianOperators
88+
- name: "Install Dependencies and Run Tests"
89+
run: |
90+
import Pkg
91+
Pkg.Registry.update()
92+
# Install packages present in subdirectories
93+
dev_pks = Pkg.PackageSpec[]
94+
for path in ("lib/SciMLJacobianOperators", "lib/NonlinearSolveBase")
95+
push!(dev_pks, Pkg.PackageSpec(; path))
96+
end
97+
Pkg.develop(dev_pks)
98+
Pkg.instantiate()
99+
Pkg.test(; coverage="user")
100+
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=lib/SCCNonlinearSolve {0}
101+
- uses: julia-actions/julia-processcoverage@v1
102+
with:
103+
directories: lib/SCCNonlinearSolve/src,lib/NonlinearSolveBase/src,lib/NonlinearSolveBase/ext,lib/SciMLJacobianOperators/src
104+
- uses: codecov/codecov-action@v4
105+
with:
106+
file: lcov.info
107+
token: ${{ secrets.CODECOV_TOKEN }}
108+
verbose: true
109+
fail_ci_if_error: false

0 commit comments

Comments
 (0)