Skip to content

Commit

Permalink
chore: migrate tot tox4
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Jan 7, 2024
1 parent e10ab83 commit bd4177a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: poetry install

- name: Run tox
run: poetry run tox -e flake8 -s false
run: poetry run tox run -e flake8 -s false

static-code-analysis:
name: Static Coding Analysis (py${{ matrix.python-version}} ${{ matrix.toxenv-factor }})
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
run: poetry install --no-interaction --no-root

- name: Run tox
run: poetry run tox -re mypy-${{ matrix.toxenv-factor }} -s false
run: poetry run tox run -r -e mypy-${{ matrix.toxenv-factor }} -s false

build-and-test:
name: Test (${{ matrix.os }} py${{ matrix.python-version }} ${{ matrix.toxenv-factor }})
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
- name: Ensure build successful
run: poetry build
- name: Run tox
run: poetry run tox -v -r -e py-${{ matrix.toxenv-factor }} -s false
run: poetry run tox run -v -r -e py-${{ matrix.toxenv-factor }} -s false
- name: Generate coverage reports
run: >
poetry run coverage report &&
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ python = "^3.8"
defusedxml = "^0.7.1"

[tool.poetry.dev-dependencies]
tox = "3.28.0"
tox = "4.11.4"
coverage = "7.4.0"
xmldiff = "2.6.3"
mypy = "1.8.0"
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
# To use it, "pip install tox" and then run "tox" from this directory.

[tox]
minversion = 3.10
minversion = 4.0
envlist =
flake8
mypy-{locked,lowest}
py{312,311,310,39,38}-{locked,lowest}
isolated_build = True
skip_missing_interpreters = True
usedevelop = False
download = False
Expand Down

0 comments on commit bd4177a

Please sign in to comment.