Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 43b4840

Browse files
committed
Tox test run cleanup, lint and type removed and type added to py3.11 run only. Synchronized gh-actions run with tox changes
1 parent 1ba2b2c commit 43b4840

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v3
3131

3232
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v3
33+
uses: actions/setup-python@v4
3434
with:
3535
python-version: ${{ matrix.python-version }}
3636

tox.ini

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
2-
envlist = pypy38, py36, py37, py38, py39, py310, py311
2+
requires = tox>=4
3+
envlist = lint, type, pypy{38}, py{36,37,38,39,310,311}
34

45
[gh-actions]
56
python =
@@ -9,11 +10,24 @@ python =
910
3.8: py38
1011
3.9: py39
1112
3.10: py310
12-
3.11: py311
13+
3.11: py311, type
1314

1415
[testenv]
15-
deps =
16-
mypy
16+
description = run unit tests
1717
commands =
1818
python -m unittest discover
19-
mypy src
19+
20+
[testenv:lint]
21+
description = run linters
22+
skip_install = true
23+
deps =
24+
black>=22.12
25+
commands =
26+
black src
27+
28+
[testenv:type]
29+
description = run type checks
30+
deps =
31+
mypy>=1.0
32+
commands =
33+
mypy src

0 commit comments

Comments
 (0)