Skip to content

Commit

Permalink
add single-backend test decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKue committed May 28, 2024
1 parent b767e12 commit e4e6462
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[pytest]
markers =
jax: mark test as requiring JAX
numpy: mark test as requiring NumPy
tensorflow: mark test as requiring TensorFlow
torch: mark test as requiring PyTorch
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ set_env =
PIP_EXTRA_INDEX_URL = https://download.pytorch.org/whl/cpu

commands =
python -m pytest tests/ -n auto -v
jax: python -m pytest tests/ -n auto -v -m jax
numpy: python -m pytest tests/ -n auto -v -m numpy
tensorflow: python -m pytest tests/ -n auto -v -m tensorflow
torch: python -m pytest tests/ -n auto -v -m torch

0 comments on commit e4e6462

Please sign in to comment.