Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to tox4 #59

Merged
merged 1 commit into from
Jan 7, 2024
Merged
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
chore: migrate tot tox4
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Jan 7, 2024
commit bd4177a248e6956871069070b85384263855e0a8
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