Skip to content

Commit 652afed

Browse files
committed
merge conflict
2 parents bc82efd + 4b82203 commit 652afed

File tree

1 file changed

+20
-42
lines changed

1 file changed

+20
-42
lines changed

.github/workflows/build.yml

+20-42
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
FIREDRAKE_CI: 1
4040
PYOP2_CI_TESTS: 1
4141
PYOP2_SPMD_STRICT: 1
42-
EXTRA_PYTEST_ARGS: --splitting-algorithm least_duration --timeout=600 --timeout-method=thread -o faulthandler_timeout=660
42+
EXTRA_PYTEST_ARGS: --splitting-algorithm least_duration --timeout=600 --timeout-method=thread -o faulthandler_timeout=660 firedrake-repo/tests/firedrake
4343
PYTEST_MPI_MAX_NPROCS: 8
4444
steps:
4545
- name: Fix HOME
@@ -98,85 +98,63 @@ jobs:
9898
firedrake-check
9999
timeout-minutes: 5
100100

101-
- name: Run TSFC tests
101+
- name: Run tests (nprocs = 1)
102102
# Run even if earlier tests failed
103-
if: success() || steps.install.conclusion == 'success'
103+
if: ${{ success() || steps.install.conclusion == 'success' }}
104104
run: |
105105
. venv/bin/activate
106106
: # Use pytest-xdist here so we can have a single collated output (not possible
107107
: # for parallel tests)
108-
firedrake-run-split-tests 1 1 -n 8 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/tsfc
109-
timeout-minutes: 60
110-
111-
- name: Run PyOP2 tests
112-
if: success() || steps.install.conclusion == 'success'
113-
run: |
114-
. venv/bin/activate
115-
: # Use pytest-xdist here so we can have a single collated output (not possible
116-
: # for parallel tests)
117-
firedrake-run-split-tests 1 1 -n 8 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/pyop2
118-
firedrake-run-split-tests 2 4 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/pyop2
119-
firedrake-run-split-tests 3 2 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/pyop2
120-
firedrake-run-split-tests 4 2 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/pyop2
121-
timeout-minutes: 15
122-
123-
124-
- name: Run Firedrake tests (nprocs = 1)
125-
if: success() || steps.install.conclusion == 'success'
126-
run: |
127-
. venv/bin/activate
128-
: # Use pytest-xdist here so we can have a single collated output (not possible
129-
: # for parallel tests)
130-
firedrake-run-split-tests 1 1 -n 8 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
108+
firedrake-run-split-tests 1 1 "-n 8 $EXTRA_PYTEST_ARGS"
131109
timeout-minutes: 60
132110

133111
- name: Run tests (nprocs = 2)
134-
if: success() || steps.install.conclusion == 'success'
112+
if: ${{ success() || steps.install.conclusion == 'success' }}
135113
run: |
136114
. venv/bin/activate
137-
firedrake-run-split-tests 2 4 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
115+
firedrake-run-split-tests 2 4 "$EXTRA_PYTEST_ARGS"
138116
timeout-minutes: 30
139117

140118
- name: Run tests (nprocs = 3)
141-
if: success() || steps.install.conclusion == 'success'
119+
if: ${{ success() || steps.install.conclusion == 'success' }}
142120
run: |
143121
. venv/bin/activate
144-
firedrake-run-split-tests 3 2 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
122+
firedrake-run-split-tests 3 2 "$EXTRA_PYTEST_ARGS"
145123
timeout-minutes: 60
146124

147125
- name: Run tests (nprocs = 4)
148-
if: success() || steps.install.conclusion == 'success'
126+
if: ${{ success() || steps.install.conclusion == 'success' }}
149127
run: |
150128
. venv/bin/activate
151-
firedrake-run-split-tests 4 2 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
129+
firedrake-run-split-tests 4 2 "$EXTRA_PYTEST_ARGS"
152130
timeout-minutes: 15
153131

154132
- name: Run tests (nprocs = 5)
155-
if: success() || steps.install.conclusion == 'success'
133+
if: ${{ success() || steps.install.conclusion == 'success' }}
156134
run: |
157135
. venv/bin/activate
158-
firedrake-run-split-tests 5 1 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
136+
firedrake-run-split-tests 5 1 "$EXTRA_PYTEST_ARGS"
159137
timeout-minutes: 15
160138

161139
- name: Run tests (nprocs = 6)
162-
if: success() || steps.install.conclusion == 'success'
140+
if: ${{ success() || steps.install.conclusion == 'success' }}
163141
run: |
164142
. venv/bin/activate
165-
firedrake-run-split-tests 6 1 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
143+
firedrake-run-split-tests 6 1 "$EXTRA_PYTEST_ARGS"
166144
timeout-minutes: 15
167145

168146
- name: Run tests (nprocs = 7)
169-
if: success() || steps.install.conclusion == 'success'
147+
if: ${{ success() || steps.install.conclusion == 'success' }}
170148
run: |
171149
. venv/bin/activate
172-
firedrake-run-split-tests 7 1 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
150+
firedrake-run-split-tests 7 1 "$EXTRA_PYTEST_ARGS"
173151
timeout-minutes: 15
174152

175153
- name: Run tests (nprocs = 8)
176-
if: success() || steps.install.conclusion == 'success'
154+
if: ${{ success() || steps.install.conclusion == 'success' }}
177155
run: |
178156
. venv/bin/activate
179-
firedrake-run-split-tests 8 1 "$EXTRA_PYTEST_ARGS" firedrake-repo/tests/firedrake
157+
firedrake-run-split-tests 8 1 "$EXTRA_PYTEST_ARGS"
180158
timeout-minutes: 15
181159

182160
- name: Run Gusto smoke tests
@@ -282,7 +260,7 @@ jobs:
282260
- name: Setup Python
283261
uses: actions/setup-python@v5
284262
with:
285-
python-version: "3.12"
263+
python-version: '3.12'
286264
- name: Install deps
287265
run: pip install requests packaging
288266
- name: Zenodo API canary
@@ -291,5 +269,5 @@ jobs:
291269
uses: actions/upload-artifact@v4
292270
if: failure()
293271
with:
294-
name: zenodo-canary
272+
name: "zenodo-canary"
295273
path: firedrake-install.log

0 commit comments

Comments
 (0)