@@ -16,65 +16,63 @@ concurrency:
1616 cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
1717
1818jobs :
19- # test-DI-Core:
20- # name: ${{ matrix.version }} - DI Core (${{ matrix.group }})
21- # runs-on: ubuntu-latest
22- # if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
23- # timeout-minutes: 180
24- # permissions:
25- # # needed to allow julia-actions/cache to proactively delete old caches that it has created
26- # actions: write
27- # contents: read
28- # strategy:
29- # fail-fast: false # TODO: toggle
30- # matrix:
31- # version:
32- # - '1.10'
33- # - '1.11'
34- # - '1.12'
35- # group:
36- # - Internals
37- # - SimpleFiniteDiff
38- # - ZeroBackends
39- # skip_lts:
40- # - ${{ github.event.pull_request.draft }}
41- # skip_pre:
42- # - ${{ github.event.pull_request.draft }}
43- # exclude:
44- # - skip_lts: true
45- # version: '1.10'
46- # - skip_pre: true
47- # version: '1.12'
48- # env:
49- # JULIA_DI_TEST_TYPE: 'Core'
50- # JULIA_DI_TEST_GROUP: ${{ matrix.group }}
51- # JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
52- # steps:
53- # - uses: actions/checkout@v6
54- # - uses: julia-actions/setup-julia@v3
55- # with:
56- # version: ${{ matrix.version }}
57- # arch: x64
58- # - uses: julia-actions/cache@v3
59- # - name: Install dependencies & run tests
60- # run: julia --color=yes -e ' using Pkg;
61- # Pkg.activate("./DifferentiationInterface/test"); if VERSION < v"1.11";
62- # Pkg.rm("DifferentiationInterfaceTest"); Pkg.resolve(); else;
63- # Pkg.develop(; path="./DifferentiationInterfaceTest"); end;
64- # Pkg.activate("./DifferentiationInterface"); test_kwargs = (;
65- # allow_reresolve=false, coverage=true); if ENV["JULIA_DI_PR_DRAFT"] ==
66- # "true"; Pkg.test("DifferentiationInterface"; julia_args=["-O1"],
67- # test_kwargs...); else; Pkg.test("DifferentiationInterface";
68- # test_kwargs...); end;'
69- # - uses: julia-actions/julia-processcoverage@v1
70- # with:
71- # directories: ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
72- # - uses: codecov/codecov-action@v6
73- # with:
74- # files: lcov.info
75- # flags: DI
76- # token: ${{ secrets.CODECOV_TOKEN }}
77- # fail_ci_if_error: false
19+ test-DI-Core :
20+ name : ${{ matrix.version }} - DI Core (${{ matrix.group }})
21+ runs-on : ubuntu-latest
22+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
23+ timeout-minutes : 180
24+ permissions :
25+ # needed to allow julia-actions/cache to proactively delete old caches that it has created
26+ actions : write
27+ contents : read
28+ strategy :
29+ fail-fast : false # TODO: toggle
30+ matrix :
31+ version :
32+ - ' 1.10'
33+ - ' 1.11'
34+ - ' 1.12'
35+ group :
36+ - Internals
37+ - SimpleFiniteDiff
38+ - ZeroBackends
39+ skip_past :
40+ - ${{ github.event.pull_request.draft }}
41+ exclude :
42+ - skip_past : true
43+ version : ' 1.10'
44+ - skip_past : true
45+ version : ' 1.11'
46+ env :
47+ JULIA_DI_TEST_TYPE : ' Core'
48+ JULIA_DI_TEST_GROUP : ${{ matrix.group }}
49+ JULIA_DI_PR_DRAFT : ${{ github.event.pull_request.draft }}
50+ steps :
51+ - uses : actions/checkout@v6
52+ - uses : julia-actions/setup-julia@v3
53+ with :
54+ version : ${{ matrix.version }}
55+ arch : x64
56+ - uses : julia-actions/cache@v3
57+ - name : Install dependencies & run tests
58+ run : julia --color=yes -e ' using Pkg;
59+ Pkg.activate("./DifferentiationInterface/test"); if VERSION < v"1.11";
60+ Pkg.rm("DifferentiationInterfaceTest"); Pkg.resolve(); else;
61+ Pkg.develop(; path="./DifferentiationInterfaceTest"); end;
62+ Pkg.activate("./DifferentiationInterface"); test_kwargs = (;
63+ allow_reresolve=false, coverage=true); if ENV["JULIA_DI_PR_DRAFT"] ==
64+ " true" ; Pkg.test("DifferentiationInterface"; julia_args=["-O1"],
65+ test_kwargs...); else; Pkg.test("DifferentiationInterface";
66+ test_kwargs...); end;'
67+ - uses : julia-actions/julia-processcoverage@v1
68+ with :
69+ directories : ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
70+ - uses : codecov/codecov-action@v6
71+ with :
72+ files : lcov.info
73+ flags : DI
74+ token : ${{ secrets.CODECOV_TOKEN }}
75+ fail_ci_if_error : false
7876
7977 test-DI-Backend :
8078 name : ${{ matrix.version }} - DI Back (${{ matrix.group }})
@@ -93,32 +91,30 @@ jobs:
9391 - ' 1.11'
9492 - ' 1.12'
9593 group :
96- # - ChainRules
97- # - DifferentiateWith
98- # - Diffractor
99- # - Enzyme
100- # - FastDifferentiation
101- # - FiniteDiff
102- # - FiniteDifferences
103- # - ForwardDiff
104- # - GTPSA
94+ - ChainRules
95+ - DifferentiateWith
96+ - Diffractor
97+ - Enzyme
98+ - FastDifferentiation
99+ - FiniteDiff
100+ - FiniteDifferences
101+ - ForwardDiff
102+ - GTPSA
105103 - Mooncake
106104 - Mooncake-old
107- # - PolyesterForwardDiff
108- # - ReverseDiff
109- # - SparsityDetector
110- # - Symbolics
111- # - Tracker
112- # - Zygote
113- skip_lts :
114- - ${{ github.event.pull_request.draft }}
115- skip_pre :
105+ - PolyesterForwardDiff
106+ - ReverseDiff
107+ - SparsityDetector
108+ - Symbolics
109+ - Tracker
110+ - Zygote
111+ skip_past :
116112 - ${{ github.event.pull_request.draft }}
117113 exclude :
118- - skip_lts : true
114+ - skip_past : true
119115 version : ' 1.10'
120- - skip_pre : true
121- version : ' 1.12 '
116+ - skip_past : true
117+ version : ' 1.11 '
122118 - version : ' 1.11'
123119 group : ChainRules
124120 env :
@@ -132,13 +128,22 @@ jobs:
132128 version : ${{ matrix.version }}
133129 arch : x64
134130 - uses : julia-actions/cache@v3
135- - name : Install dependencies & run tests
131+ - name : Install dependencies & run tests (draft)
132+ if : ${{ github.event.pull_request.draft }}
136133 run : julia --code-coverage=user --color=yes -e ' using Pkg; group =
137134 ENV["JULIA_DI_TEST_GROUP"];
138135 Pkg.activate("./DifferentiationInterface/test/Back/$group");
139136 Pkg.develop([PackageSpec(path="./DifferentiationInterface"),
140137 PackageSpec(path="./DifferentiationInterfaceTest")]);
141138 include("./DifferentiationInterface/test/Back/run_backend.jl");'
139+ - name : Install dependencies & run tests (not draft)
140+ if : ${{ github.event.pull_request.draft }}
141+ run : julia -O1 --code-coverage=user --color=yes -e ' using Pkg; group =
142+ ENV["JULIA_DI_TEST_GROUP"];
143+ Pkg.activate("./DifferentiationInterface/test/Back/$group");
144+ Pkg.develop([PackageSpec(path="./DifferentiationInterface"),
145+ PackageSpec(path="./DifferentiationInterfaceTest")]);
146+ include("./DifferentiationInterface/test/Back/run_backend.jl");'
142147 - uses : julia-actions/julia-processcoverage@v1
143148 with :
144149 directories : ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
@@ -148,60 +153,58 @@ jobs:
148153 flags : DI
149154 token : ${{ secrets.CODECOV_TOKEN }}
150155 fail_ci_if_error : false
151- # test-DIT:
152- # name: ${{ matrix.version }} - DIT (${{ matrix.group }})
153- # runs-on: ubuntu-latest
154- # if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
155- # timeout-minutes: 60
156- # permissions:
157- # # needed to allow julia-actions/cache to proactively delete old caches that it has created
158- # actions: write
159- # contents: read
160- # strategy:
161- # fail-fast: false # TODO: toggle
162- # matrix:
163- # version:
164- # - '1.10'
165- # - '1.11'
166- # - '1.12'
167- # group:
168- # - Formalities
169- # - Zero
170- # - Standard
171- # - Weird
172- # skip_lts:
173- # - ${{ github.event.pull_request.draft }}
174- # skip_pre:
175- # - ${{ github.event.pull_request.draft }}
176- # exclude:
177- # - skip_lts: true
178- # version: '1.10'
179- # - skip_pre: true
180- # version: '1.12'
181- # env:
182- # JULIA_DIT_TEST_GROUP: ${{ matrix.group }}
183- # JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
184- # steps:
185- # - uses: actions/checkout@v6
186- # - uses: julia-actions/setup-julia@v3
187- # with:
188- # version: ${{ matrix.version }}
189- # arch: x64
190- # - uses: julia-actions/cache@v3
191- # - name: Install dependencies & run tests
192- # run: julia --project=./DifferentiationInterfaceTest --color=yes -e ' using Pkg;
193- # Pkg.Registry.update(); Pkg.develop(path="./DifferentiationInterface");
194- # if ENV["JULIA_DI_PR_DRAFT"] == "true";
195- # Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false,
196- # coverage=true, julia_args=["-O1"]); else;
197- # Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false,
198- # coverage=true); end;'
199- # - uses: julia-actions/julia-processcoverage@v1
200- # with:
201- # directories: ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
202- # - uses: codecov/codecov-action@v6
203- # with:
204- # files: lcov.info
205- # flags: DIT
206- # token: ${{ secrets.CODECOV_TOKEN }}
207- # fail_ci_if_error: false
156+ test-DIT :
157+ name : ${{ matrix.version }} - DIT (${{ matrix.group }})
158+ runs-on : ubuntu-latest
159+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
160+ timeout-minutes : 60
161+ permissions :
162+ # needed to allow julia-actions/cache to proactively delete old caches that it has created
163+ actions : write
164+ contents : read
165+ strategy :
166+ fail-fast : false # TODO: toggle
167+ matrix :
168+ version :
169+ - ' 1.10'
170+ - ' 1.11'
171+ - ' 1.12'
172+ group :
173+ - Formalities
174+ - Zero
175+ - Standard
176+ - Weird
177+ skip_past :
178+ - ${{ github.event.pull_request.draft }}
179+ exclude :
180+ - skip_past : true
181+ version : ' 1.10'
182+ - skip_past : true
183+ version : ' 1.11'
184+ env :
185+ JULIA_DIT_TEST_GROUP : ${{ matrix.group }}
186+ JULIA_DI_PR_DRAFT : ${{ github.event.pull_request.draft }}
187+ steps :
188+ - uses : actions/checkout@v6
189+ - uses : julia-actions/setup-julia@v3
190+ with :
191+ version : ${{ matrix.version }}
192+ arch : x64
193+ - uses : julia-actions/cache@v3
194+ - name : Install dependencies & run tests
195+ run : julia --project=./DifferentiationInterfaceTest --color=yes -e ' using Pkg;
196+ Pkg.Registry.update(); Pkg.develop(path="./DifferentiationInterface");
197+ if ENV["JULIA_DI_PR_DRAFT"] == "true";
198+ Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false,
199+ coverage=true, julia_args=["-O1"]); else;
200+ Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false,
201+ coverage=true); end;'
202+ - uses : julia-actions/julia-processcoverage@v1
203+ with :
204+ directories : ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
205+ - uses : codecov/codecov-action@v6
206+ with :
207+ files : lcov.info
208+ flags : DIT
209+ token : ${{ secrets.CODECOV_TOKEN }}
210+ fail_ci_if_error : false
0 commit comments