Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
sudo apt-get update
xargs -r sudo apt-get install -y < packages.txt

- name: Install Testing Requirements
- name: Install tox
run: |
pip install -e .[test]
pip install tox tox-gh-actions

- name: Unit Testing
- name: Run tests with tox
run: |
export PYTHONPATH=. && xvfb-run python -m pytest -v
export PYTHONPATH=. && xvfb-run tox
23 changes: 0 additions & 23 deletions noxfile.py

This file was deleted.

36 changes: 36 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[tox]
requires =
tox>=4.2
env_list =
py311
py312
py313

[gh-actions]
python =
3.11: py311
3.12: py312
3.13: py313

[testenv]
description = Run tests with pytest
deps =
{[project]extras=test}
commands =
pytest {posargs}

[testenv:docs]
description = Build documentation with Sphinx
deps =
{[project]extras=docs}
changedir = docs
commands =
sphinx-build -W -b html . _build/html

[testenv:lint]
description = Run pre-commit hooks
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files {posargs}
Loading