@@ -96,15 +96,15 @@ jobs:
96
96
SAGE_NUM_THREADS : 2
97
97
98
98
- name : Build modularized distributions
99
- if : always( ) && steps.worktree.outcome == 'success'
99
+ if : (success() || failure() ) && steps.worktree.outcome == 'success'
100
100
run : make V=0 tox && make SAGE_CHECK=no pypi-wheels
101
101
working-directory : ./worktree-image
102
102
env :
103
103
MAKE : make -j2 --output-sync=recurse
104
104
SAGE_NUM_THREADS : 2
105
105
106
106
- name : Static code check with pyright
107
- if : always( ) && steps.worktree.outcome == 'success'
107
+ if : (success() || failure() ) && steps.worktree.outcome == 'success'
108
108
uses : jakebailey/pyright-action@v1
109
109
with :
110
110
version : 1.1.332
@@ -116,7 +116,7 @@ jobs:
116
116
NODE_OPTIONS : --max-old-space-size=8192
117
117
118
118
- name : Static code check with pyright (annotated)
119
- if : always( ) && steps.worktree.outcome == 'success'
119
+ if : (success() || failure() ) && steps.worktree.outcome == 'success'
120
120
uses : jakebailey/pyright-action@v1
121
121
with :
122
122
version : 1.1.332
@@ -130,7 +130,7 @@ jobs:
130
130
131
131
- name : Clean (fallback to non-incremental)
132
132
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'
134
134
run : |
135
135
set -ex
136
136
./bootstrap && make doc-clean doc-uninstall sagelib-clean && git clean -fx src/sage && ./config.status
@@ -143,7 +143,7 @@ jobs:
143
143
# This step is needed because building the modularized distributions installs some optional packages,
144
144
# so the editable install of sagelib needs to build the corresponding optional extension modules.
145
145
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')
147
147
run : |
148
148
make build
149
149
working-directory : ./worktree-image
@@ -154,7 +154,7 @@ jobs:
154
154
# Testing
155
155
156
156
- name : Test changed files (sage -t --new)
157
- if : always( ) && steps.build.outcome == 'success'
157
+ if : (success() || failure() ) && steps.build.outcome == 'success'
158
158
run : |
159
159
# We run tests with "sage -t --new"; this only tests the uncommitted changes.
160
160
./sage -t --new -p2
@@ -164,7 +164,7 @@ jobs:
164
164
SAGE_NUM_THREADS : 2
165
165
166
166
- name : Test modularized distributions
167
- if : always( ) && steps.build.outcome == 'success'
167
+ if : (success() || failure() ) && steps.build.outcome == 'success'
168
168
run : make V=0 tox && make pypi-wheels-check
169
169
working-directory : ./worktree-image
170
170
env :
@@ -182,14 +182,14 @@ jobs:
182
182
COLUMNS : 120
183
183
184
184
- name : Test all files (sage -t --all --long)
185
- if : always( ) && steps.build.outcome == 'success'
185
+ if : (success() || failure() ) && steps.build.outcome == 'success'
186
186
run : |
187
187
../sage -python -m pip install coverage
188
188
../sage -python -m coverage run ./bin/sage-runtests --all --long -p2 --random-seed=286735480429121101562228604801325644303
189
189
working-directory : ./worktree-image/src
190
190
191
191
- name : Prepare coverage results
192
- if : always( ) && steps.build.outcome == 'success'
192
+ if : (success() || failure() ) && steps.build.outcome == 'success'
193
193
run : |
194
194
./venv/bin/python3 -m coverage combine src/.coverage/
195
195
./venv/bin/python3 -m coverage xml
@@ -198,7 +198,7 @@ jobs:
198
198
working-directory : ./worktree-image
199
199
200
200
- name : Upload coverage to codecov
201
- if : always( ) && steps.build.outcome == 'success'
201
+ if : (success() || failure() ) && steps.build.outcome == 'success'
202
202
uses : codecov/codecov-action@v3
203
203
with :
204
204
directory : ./worktree-image/coverage-report
0 commit comments