Skip to content

Commit

Permalink
Test speedup: Without active DISPLAY, all in parallel (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-m-e authored Dec 27, 2023
1 parent 54799cd commit d6be561
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ upload:
twine upload $$filename $$filename.asc ; \
done

test:
DISPLAY= tox

.PHONY: docs docker image release upload
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ test = [
"pytest-mpl",
"pytest-mypy",
"pytest-remotedata",
"pytest-xdist[psutil]",
"tox",
]

Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ setenv =
PIP_PREFER_BINARY = 1
NPY_DISABLE_CPU_FEATURES = AVX512_SKX
coverage: NUMBA_DISABLE_JIT = 1
fast: PYTEST_MARKERS = -m "not slow and not mpl_image_compare"
online: PYTEST_MARKERS = -m "remote_data"
slow: PYTEST_MARKERS = -m "slow"
images: PYTEST_MARKERS = -m "mpl_image_compare"
fast: PYTEST_MARKERS = -m "not slow and not mpl_image_compare" -n auto
online: PYTEST_MARKERS = -m "remote_data" -n auto
slow: PYTEST_MARKERS = -m "slow" -n auto
images: PYTEST_MARKERS = -m "mpl_image_compare" -n auto
PYTEST_EXTRA_ARGS = --mypy
online: PYTEST_EXTRA_ARGS = --remote-data=any
slow: PYTEST_EXTRA_ARGS =
Expand Down

0 comments on commit d6be561

Please sign in to comment.