@@ -96,15 +96,15 @@ jobs:
9696 SAGE_NUM_THREADS : 2
9797
9898 - name : Build modularized distributions
99- if : always( ) && steps.worktree.outcome == 'success'
99+ if : (success() || failure() ) && steps.worktree.outcome == 'success'
100100 run : make V=0 tox && make SAGE_CHECK=no pypi-wheels
101101 working-directory : ./worktree-image
102102 env :
103103 MAKE : make -j2 --output-sync=recurse
104104 SAGE_NUM_THREADS : 2
105105
106106 - name : Static code check with pyright
107- if : always( ) && steps.worktree.outcome == 'success'
107+ if : (success() || failure() ) && steps.worktree.outcome == 'success'
108108 uses : jakebailey/pyright-action@v1
109109 with :
110110 version : 1.1.332
@@ -116,7 +116,7 @@ jobs:
116116 NODE_OPTIONS : --max-old-space-size=8192
117117
118118 - name : Static code check with pyright (annotated)
119- if : always( ) && steps.worktree.outcome == 'success'
119+ if : (success() || failure() ) && steps.worktree.outcome == 'success'
120120 uses : jakebailey/pyright-action@v1
121121 with :
122122 version : 1.1.332
@@ -130,7 +130,7 @@ jobs:
130130
131131 - name : Clean (fallback to non-incremental)
132132 id : clean
133- if : always( ) && steps.worktree.outcome == 'success' && steps.incremental.outcome != 'success'
133+ if : (success() || failure() ) && steps.worktree.outcome == 'success' && steps.incremental.outcome != 'success'
134134 run : |
135135 set -ex
136136 ./bootstrap && make doc-clean doc-uninstall sagelib-clean && git clean -fx src/sage && ./config.status
@@ -143,7 +143,7 @@ jobs:
143143 # This step is needed because building the modularized distributions installs some optional packages,
144144 # so the editable install of sagelib needs to build the corresponding optional extension modules.
145145 id : build
146- if : always( ) && (steps.incremental.outcome == 'success' || steps.clean.outcome == 'success')
146+ if : (success() || failure() ) && (steps.incremental.outcome == 'success' || steps.clean.outcome == 'success')
147147 run : |
148148 make build
149149 working-directory : ./worktree-image
@@ -154,7 +154,7 @@ jobs:
154154 # Testing
155155
156156 - name : Test changed files (sage -t --new)
157- if : always( ) && steps.build.outcome == 'success'
157+ if : (success() || failure() ) && steps.build.outcome == 'success'
158158 run : |
159159 # We run tests with "sage -t --new"; this only tests the uncommitted changes.
160160 ./sage -t --new -p2
@@ -164,7 +164,7 @@ jobs:
164164 SAGE_NUM_THREADS : 2
165165
166166 - name : Test modularized distributions
167- if : always( ) && steps.build.outcome == 'success'
167+ if : (success() || failure() ) && steps.build.outcome == 'success'
168168 run : make V=0 tox && make pypi-wheels-check
169169 working-directory : ./worktree-image
170170 env :
@@ -182,14 +182,14 @@ jobs:
182182 COLUMNS : 120
183183
184184 - name : Test all files (sage -t --all --long)
185- if : always( ) && steps.build.outcome == 'success'
185+ if : (success() || failure() ) && steps.build.outcome == 'success'
186186 run : |
187187 ../sage -python -m pip install coverage
188188 ../sage -python -m coverage run ./bin/sage-runtests --all --long -p2 --random-seed=286735480429121101562228604801325644303
189189 working-directory : ./worktree-image/src
190190
191191 - name : Prepare coverage results
192- if : always( ) && steps.build.outcome == 'success'
192+ if : (success() || failure() ) && steps.build.outcome == 'success'
193193 run : |
194194 ./venv/bin/python3 -m coverage combine src/.coverage/
195195 ./venv/bin/python3 -m coverage xml
@@ -198,7 +198,7 @@ jobs:
198198 working-directory : ./worktree-image
199199
200200 - name : Upload coverage to codecov
201- if : always( ) && steps.build.outcome == 'success'
201+ if : (success() || failure() ) && steps.build.outcome == 'success'
202202 uses : codecov/codecov-action@v3
203203 with :
204204 directory : ./worktree-image/coverage-report
0 commit comments