File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 99 - uses : actions/checkout@v4
1010 - name : Install Python
1111 uses : actions/setup-python@v5
12+ with :
13+ python-version : ' 3.11'
1214 - name : Install poetry
1315 uses : abatilo/actions-poetry@v3
1416 - name : Install shellcheck
2830 run : poetry run black --check --verbose .
2931 - name : Isort check
3032 run : poetry run isort . --profile black --check --diff
31- - name : Pytest check
32- run : poetry run pytest -rP
33+ - name : Tox check (pytest)
34+ run : poetry run tox
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ black = "^24.8.0"
4949isort = " ^5.13.2"
5050pytest = " ^8.3.3"
5151poethepoet = " ^0.29.0"
52+ tox = " ^4.24.1"
5253
5354[tool .poe .tasks ]
5455check = " ./scripts/check.sh"
Original file line number Diff line number Diff line change 22
33poetry run black . --extend-exclude=" kcidev-src"
44poetry run isort . --extend-skip=" kcidev-src"
5- poetry run pytest -rP --ignore= " kcidev-src "
5+ poetry run tox
Original file line number Diff line number Diff line change 1+ [tox]
2+ env_list = py311,py312
3+
4+ [testenv]
5+ allowlist_externals = poetry
6+ commands_pre =
7+ poetry install --no-root
8+ poetry sync
9+ commands =
10+ poetry run pytest tests/ --import-mode importlib
11+
You can’t perform that action at this time.
0 commit comments