diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e97479..773464a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,10 @@ jobs: python-version: ${{ matrix.python }} - uses: actions/download-artifact@v3 with: {name: python-distribution-files, path: dist/} + - name: Install tox-gh plugin + run: python -m pip install tox-gh>=1.2 + - name: Setup test suite + run: tox -vv --notest - name: Run tests env: # New variables should match a `passenv` pattern under `[testenv]` in tox.ini @@ -87,9 +91,8 @@ jobs: NEXTFLOWTOWER_CONNECTION_URI: ${{ secrets.NEXTFLOWTOWER_CONNECTION_URI }} SYNAPSE_CONNECTION_URI: ${{ secrets.SYNAPSE_CONNECTION_URI }} run: >- - pipx run --spec 'tox~=3.0' tox - --installpkg '${{ needs.prepare.outputs.wheel-path }}' - -- -rFEx --durations 10 --color yes + tox --installpkg '${{ needs.prepare.outputs.wheel-path }}' + -- -rFEx --durations 10 --color yes - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: diff --git a/setup.cfg b/setup.cfg index 42bcda2..a1b06a9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -41,7 +41,7 @@ package_dir = =src # Require a min/specific Python version (comma-separated conditions) -python_requires = >=3.8 +python_requires = >=3.8, <3.12 # Add here dependencies of your project (line-separated), e.g. requests>=2.2,<3.0. # Version specifiers like >=2.2,<3.0 avoid problems due to API changes in diff --git a/tox.ini b/tox.ini index 448e310..7375c05 100644 --- a/tox.ini +++ b/tox.ini @@ -3,10 +3,13 @@ # THIS SCRIPT IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS! [tox] -minversion = 3.24 -envlist = default +minversion = 4.2 isolated_build = True +[gh] +python = + 3.8: py38 + 3.11: py311 [testenv] description = Invoke pytest to run automated tests