Skip to content

Commit

Permalink
fix(tests): Fix tox setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mimre25 committed Aug 21, 2023
1 parent 98e5927 commit 4bb313c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ jobs:
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
envlist = py{37,38,39,310,311},lint
envlist = py{3.7,3.8,3.9,3.10,3.11},lint
isolated_build = True

[testenv]
Expand All @@ -11,17 +11,16 @@ deps =
freezegun
commands =
coverage run -m pytest {posargs}
coverage report

[testenv:py{39,310,311}]
[testenv:py{3.9,3.10,3.11}]
commands =
{[testenv]commands}
coverage report --fail-under 100
coverage xml --fail-under 100

[testenv:py{37,38}]
[testenv:py{3.7,3.8}]
commands =
{[testenv]commands}
coverage report --fail-under 80
coverage xml --fail-under 80

[testenv:ruff]
skip_install = true
Expand Down

0 comments on commit 4bb313c

Please sign in to comment.