diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 0000000..0a8078f --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,18 @@ +name: tox +on: [push, pull_request] +jobs: + tox: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest] + python: ['3.9', '3.13', 'pypy3.11'] # ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.11'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - run: pip install --upgrade pip + - run: pip install tox + - run: tox -e ${{ matrix.python }}-pytest diff --git a/tox.ini b/tox.ini index f109b95..126b528 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] # NOTE: when adding Python versions, also update and re-run `./rebuild-circleci-yaml` -envlist=pypy3-{nose,nose2,pytest3,unit,unit2},py{37,38,39}-{nose,nose2,pytest3,unit,unit2},py{310,311}-{unit,nose2} +envlist=pypy3-{nose,nose2,pytest,unit,unit2},py{37,38,39}-{nose,nose2,pytest,unit,unit2},py{310,311,312,313}-{unit,nose2,pytest} [testenv] deps= @@ -10,10 +10,12 @@ deps= pytest2: pytest>=2,<3 pytest3: pytest>=3,<4 #pytest4: pytest>=4,<5 + pytest: pytest unit2: unittest2 commands= nose: nosetests nose2: nose2 + pytest: pytest parameterized/test.py pytest2: py.test parameterized/test.py pytest3: py.test parameterized/test.py #pytest4: py.test parameterized/test.py