Skip to content

Commit

Permalink
Move pytest config into pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Apr 9, 2024
1 parent e51f4ca commit 5012941
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,12 @@ commitizen = {version = "^3.20.0", optional = true}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
testpaths = [
"hypernetx/classes/tests",
"hypernetx/classes/algorithms",
]
8 changes: 0 additions & 8 deletions pytest.ini

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description = run tests
allowlist_externals = env, poetry
parallel_show_output = true
commands_pre =
poetry install --with test --all-extras
poetry install --with test
commands =
env
poetry run coverage run --source=hypernetx -m pytest --junitxml=pytest.xml
Expand All @@ -36,7 +36,7 @@ commands =
description = run tests on jupyter notebooks
basepython = python3.9
commands_pre =
poetry install --with test,tutorials,widget --all-extras
poetry install --with test,tutorials,widget
commands =
poetry run pytest --nbmake "tutorials/" --junitxml=pytest_notebooks.xml -n=auto --nbmake-timeout=300 --nbmake-find-import-errors

Expand Down

0 comments on commit 5012941

Please sign in to comment.