File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 69
69
pytest
70
70
pytest-codspeed
71
71
pytest-mpl
72
- pytest-rerunfailures
72
+ pytest-rerunfailures
73
73
pytest-xdist
74
-
74
+
75
75
# Download cached remote files (artifacts) from GitHub
76
76
- name : Download remote data from GitHub
77
77
run : |
93
93
with :
94
94
# 'bash -el -c' is needed to use the custom shell.
95
95
# See https://github.com/CodSpeedHQ/action/issues/65.
96
- run : bash -el -c "python -c \"import pygmt; pygmt.show_versions()\"; PYGMT_USE_EXTERNAL_DISPLAY=false python -m pytest -r P --pyargs pygmt --codspeed"
96
+ run : bash -el -c "python -c \"import pygmt; pygmt.show_versions()\"; PYGMT_USE_EXTERNAL_DISPLAY=false python -m pytest -r P -n auto --reruns 2 - -pyargs pygmt --codspeed"
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ jobs:
157
157
158
158
# Run the regular tests
159
159
- name : Run tests
160
- run : make test PYTEST_EXTRA="-r P"
160
+ run : make test PYTEST_EXTRA="-r P -n auto --reruns 2 "
161
161
162
162
# Upload diff images on test failure
163
163
- name : Upload diff images if any test fails
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ jobs:
173
173
174
174
# Run the tests
175
175
- name : Test with pytest
176
- run : make test PYTEST_EXTRA="-r P"
176
+ run : make test PYTEST_EXTRA="-r P -n auto --reruns 2 "
177
177
env :
178
178
GMT_LIBRARY_PATH : ${{ runner.temp }}/gmt-install-dir/lib
179
179
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ dependencies:
32
32
- pytest-cov
33
33
- pytest-doctestplus
34
34
- pytest-mpl
35
- - pytest-rerunfailures
36
- - pytest-xdist
37
35
# Dev dependencies (building documentation)
38
36
- myst-parser
39
37
- panel
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ max-args=10
162
162
163
163
[tool .pytest .ini_options ]
164
164
minversion = " 6.0"
165
- addopts = " --verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results -n auto --reruns 2 "
165
+ addopts = " --verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"
166
166
markers = [
167
167
" benchmark: mark a test with custom benchmark settings." ,
168
168
]
You can’t perform that action at this time.
0 commit comments