File tree Expand file tree Collapse file tree 4 files changed +35
-20
lines changed Expand file tree Collapse file tree 4 files changed +35
-20
lines changed Original file line number Diff line number Diff line change 77 types : [opened, synchronize, reopened]
88jobs :
99 test :
10- name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+ name : Julia ${{ matrix.version }}| ${{ matrix.os }}| ${{ matrix.problem_type }}|${{ matrix.adbackend }}| ${{ github.event_name }}
1111 runs-on : ${{ matrix.os }}
1212 continue-on-error : ${{ matrix.allow_failure }}
1313 strategy :
1414 fail-fast : false
1515 matrix :
1616 version : ['1.3', '1']
17+ adbackend : ["ForwardDiffAD", "ZygoteAD", "ReverseDiffAD"]
18+ problem_type : ["NLP", "NLS"]
1719 os : [ubuntu-latest, macOS-latest, windows-latest]
1820 arch : [x64]
1921 allow_failure : [false]
20- include :
21- - version : ' nightly'
22- os : ubuntu-latest
23- arch : x64
24- allow_failure : true
25- - version : ' nightly'
26- os : macOS-latest
27- arch : x64
28- allow_failure : true
29- - version : ' nightly'
30- os : windows-latest
31- arch : x64
32- allow_failure : true
3322 steps :
3423 - uses : actions/checkout@v2
3524 - uses : julia-actions/setup-julia@v1
4837 ${{ runner.os }}-
4938 - uses : julia-actions/julia-buildpkg@v1
5039 - uses : julia-actions/julia-runtest@v1
40+ env :
41+ ADBACKEND : ${{ matrix.adbackend }}
42+ PROBLEMTYPE : ${{ matrix.problem_type }}
5143 - uses : julia-actions/julia-processcoverage@v1
5244 - uses : codecov/codecov-action@v1
5345 with :
Original file line number Diff line number Diff line change 11
2- @testset " AD backend - $(adbackend) " for adbackend in ( :ForwardDiffAD , :ZygoteAD , :ReverseDiffAD )
2+ @testset " AD backend - $(adbackend) " for adbackend in backends ( )
33 for problem in NLPModelsTest. nlp_problems
44 @testset " Checking NLPModelsTest tests on problem $problem " begin
55 nlp_ad = eval (Meta. parse (lowercase (problem) * " _autodiff" ))()
Original file line number Diff line number Diff line change 1- @testset " AD backend - $(adbackend) " for adbackend in ( :ForwardDiffAD , :ZygoteAD , :ReverseDiffAD )
1+ @testset " AD backend - $(adbackend) " for adbackend in backends ( )
22 for problem in NLPModelsTest. nls_problems
33 @testset " Checking NLPModelsTest tests on problem $problem " begin
44 nls_ad = eval (Meta. parse (lowercase (problem) * " _autodiff" ))()
Original file line number Diff line number Diff line change @@ -19,7 +19,30 @@ for problem in NLPModelsTest.nls_problems
1919 include (" nls/problems/$(lowercase (problem)) .jl" )
2020end
2121
22- include (" nlp/basic.jl" )
23- include (" nls/basic.jl" )
24- include (" nlp/nlpmodelstest.jl" )
25- include (" nls/nlpmodelstest.jl" )
22+ function backends ()
23+ x = get (ENV , " ADBACKEND" , nothing )
24+ if x === nothing
25+ return (:ForwardDiffAD , :ZygoteAD , :ReverseDiffAD )
26+ else
27+ return [Symbol (x)]
28+ end
29+ end
30+
31+ if get (ENV , " CI" , " false" ) == " true"
32+ if get (ENV , " PROBLEMTYPE" , nothing ) == " NLP"
33+ println (" nlp" )
34+ println (backends ())
35+ # include("nlp/basic.jl")
36+ # include("nlp/nlpmodelstest.jl")
37+ else
38+ println (" nls" )
39+ println (backends ())
40+ # include("nls/basic.jl")
41+ # include("nls/nlpmodelstest.jl")
42+ end
43+ else
44+ include (" nlp/basic.jl" )
45+ include (" nls/basic.jl" )
46+ include (" nlp/nlpmodelstest.jl" )
47+ include (" nls/nlpmodelstest.jl" )
48+ end
You can’t perform that action at this time.
0 commit comments