@@ -20,12 +20,12 @@ jobs:
2020 name : ${{ matrix.version }} - DI (${{ matrix.group }})
2121 runs-on : ubuntu-latest
2222 if : ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
23- timeout-minutes : 60
23+ timeout-minutes : 120
2424 permissions : # needed to allow julia-actions/cache to proactively delete old caches that it has created
2525 actions : write
2626 contents : read
2727 strategy :
28- fail-fast : false # TODO: toggle
28+ fail-fast : true # TODO: toggle
2929 matrix :
3030 version :
3131 - " 1.10"
6060 group : Back/ChainRules
6161 env :
6262 JULIA_DI_TEST_GROUP : ${{ matrix.group }}
63+ JULIA_DI_PR_DRAFT : ${{ github.event.pull_request.draft }}
6364 steps :
6465 - uses : actions/checkout@v4
6566 - uses : julia-actions/setup-julia@v2
@@ -69,10 +70,14 @@ jobs:
6970 - uses : julia-actions/cache@v2
7071 - name : Install dependencies & run tests
7172 # how to add the local DIT to the DI test env?
72- run : julia --project=./DifferentiationInterface -e '
73+ run : julia --project=./DifferentiationInterface --color=yes - e '
7374 using Pkg;
7475 Pkg.Registry.update();
75- Pkg.test("DifferentiationInterface"; coverage=true);'
76+ if ENV["JULIA_DI_PR_DRAFT"] == "true";
77+ Pkg.test("DifferentiationInterface"; coverage=true, julia_args=["-O1"]);
78+ else;
79+ Pkg.test("DifferentiationInterface"; coverage=true);
80+ end;'
7681 - uses : julia-actions/julia-processcoverage@v1
7782 with :
7883 directories : ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
@@ -109,6 +114,7 @@ jobs:
109114 version : " 1.10"
110115 env :
111116 JULIA_DIT_TEST_GROUP : ${{ matrix.group }}
117+ JULIA_DI_PR_DRAFT : ${{ github.event.pull_request.draft }}
112118 steps :
113119 - uses : actions/checkout@v4
114120 - uses : julia-actions/setup-julia@v2
@@ -117,11 +123,15 @@ jobs:
117123 arch : x64
118124 - uses : julia-actions/cache@v2
119125 - name : Install dependencies & run tests
120- run : julia --project=./DifferentiationInterfaceTest -e '
126+ run : julia --project=./DifferentiationInterfaceTest --color=yes - e '
121127 using Pkg;
122128 Pkg.Registry.update();
123129 Pkg.develop(path="./DifferentiationInterface");
124- Pkg.test("DifferentiationInterfaceTest"; coverage=true);'
130+ if ENV["JULIA_DI_PR_DRAFT"] == "true";
131+ Pkg.test("DifferentiationInterfaceTest"; coverage=true, julia_args=["-O1"]);
132+ else;
133+ Pkg.test("DifferentiationInterfaceTest"; coverage=true);
134+ end;'
125135 - uses : julia-actions/julia-processcoverage@v1
126136 with :
127137 directories : ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
0 commit comments