mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-27 06:10:34 +00:00
67258b58a4
When using tox, pass `-e offline` to exclude online tests. When using pytest, pass `-m "not online"` to do the same.
44 lines
629 B
INI
44 lines
629 B
INI
[tox]
|
|
requires =
|
|
tox >= 4
|
|
envlist =
|
|
lint
|
|
py313
|
|
py312
|
|
py311
|
|
py310
|
|
py39
|
|
py38
|
|
|
|
[testenv]
|
|
description = Attempt to build and install the package
|
|
deps =
|
|
coverage
|
|
jsonschema
|
|
pytest
|
|
allowlist_externals = coverage
|
|
commands =
|
|
coverage run --source=sherlock --module pytest -v
|
|
coverage report --show-missing
|
|
|
|
[testenv:offline]
|
|
deps =
|
|
jsonschema
|
|
pytest
|
|
commands =
|
|
pytest -v -m "not online"
|
|
|
|
[testenv:lint]
|
|
description = Lint with Ruff
|
|
deps =
|
|
ruff
|
|
commands =
|
|
ruff check
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.12: py312
|
|
3.11: py311
|
|
3.10: py310
|
|
3.9: py39
|
|
3.8: py38
|