File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 69
69
pytest
70
70
pytest-codspeed
71
71
pytest-mpl
72
-
72
+ pytest-rerunfailures
73
+ pytest-xdist
74
+
73
75
# Download cached remote files (artifacts) from GitHub
74
76
- name : Download remote data from GitHub
75
77
run : |
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ jobs:
133
133
pytest-cov
134
134
pytest-doctestplus
135
135
pytest-mpl
136
+ pytest-rerunfailures
137
+ pytest-xdist
136
138
137
139
# Download cached remote files (artifacts) from GitHub
138
140
- name : Download remote data from GitHub
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ jobs:
128
128
--extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
129
129
'numpy<2' pandas xarray netCDF4 packaging \
130
130
build contextily dvc geopandas ipython pyarrow rioxarray \
131
- ' pytest>=6.0' pytest-cov pytest-doctestplus pytest-mpl \
131
+ pytest pytest-cov pytest-doctestplus pytest-mpl pytest-rerunfailures pytest-xdist \
132
132
sphinx-gallery
133
133
134
134
# Show installed pkg information for postmortem diagnostic
Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ dependencies:
28
28
- ruff>=0.3.0
29
29
# Dev dependencies (unit testing)
30
30
- matplotlib-base
31
+ - pytest>=6.0
31
32
- pytest-cov
32
33
- pytest-doctestplus
33
34
- pytest-mpl
34
- - pytest>=6.0
35
+ - pytest-rerunfailures
36
+ - pytest-xdist
35
37
# Dev dependencies (building documentation)
36
38
- myst-parser
37
39
- 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"
165
+ addopts = " --verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results -n auto --reruns 2 "
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