Skip to content

Commit 04a656d

Browse files
committed
Add GitHub Action to run tox
1 parent b9f6a64 commit 04a656d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/tox.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: tox
2+
on: [push, pull_request]
3+
jobs:
4+
tox:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
9+
python: ['3.9', '3.13', 'pypy3.11'] # ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.11']
10+
runs-on: ${{ matrix.os }}
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: ${{ matrix.python }}
16+
- run: pip install --upgrade pip
17+
- run: pip install tox
18+
- run: tox -e ${{ matrix.python }}-pytest

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
# NOTE: when adding Python versions, also update and re-run `./rebuild-circleci-yaml`
3-
envlist=pypy3-{nose,nose2,pytest3,unit,unit2},py{37,38,39}-{nose,nose2,pytest3,unit,unit2},py{310,311}-{unit,nose2}
3+
envlist=pypy3-{nose,nose2,pytest,unit,unit2},py{37,38,39}-{nose,nose2,pytest,unit,unit2},py{310,311,312,313}-{unit,nose2,pytest}
44

55
[testenv]
66
deps=
@@ -10,10 +10,12 @@ deps=
1010
pytest2: pytest>=2,<3
1111
pytest3: pytest>=3,<4
1212
#pytest4: pytest>=4,<5
13+
pytest: pytest
1314
unit2: unittest2
1415
commands=
1516
nose: nosetests
1617
nose2: nose2
18+
pytest: pytest parameterized/test.py
1719
pytest2: py.test parameterized/test.py
1820
pytest3: py.test parameterized/test.py
1921
#pytest4: py.test parameterized/test.py

0 commit comments

Comments
 (0)