Skip to content

Commit

Permalink
🔧 chore: Add-tox-config
Browse files Browse the repository at this point in the history
- Test with different python versions
Closes(#44)
  • Loading branch information
ARYAN-NIKNEZHAD committed Aug 22, 2024
1 parent a697e48 commit eab9ef7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
coverage run -m pytest
- name: Generate coverage report
run: coverage xml
- name: Run Tox tests
run: tox
- name: Upload coverage to Codecov
run: codecov
env:
Expand Down
21 changes: 21 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tox]
envlist =
py38, py39, py310, py311, py312

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
description = Run Pytest tests
usedevelop = True
deps =
pytest
pytest-cov

commands =
pytest --cov

0 comments on commit eab9ef7

Please sign in to comment.