Skip to content

Commit

Permalink
try tox-gh
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Dec 13, 2023
1 parent ebae79f commit da1f5ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
strategy:
matrix:
python:
- '3.8' # oldest Python that is supported
- '3.11' # newest Python that is stable
- "3.8"
- "3.11" # newest Python that is stable
platform:
- ubuntu-latest
- macos-latest
Expand All @@ -75,15 +75,18 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: check python version
run: echo ${{ matrix.python }}
run: python --version
- uses: actions/download-artifact@v3
with: {name: python-distribution-files, path: dist/}
- name: Install tox
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
run: tox -vv --notest
- name: Run tests
env:
SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }}
run: >-
pipx run --spec 'tox~=3.0' tox
--installpkg '${{ needs.prepare.outputs.wheel-path }}'
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}'
-- -rFEx --durations 10 --color yes
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
# THIS SCRIPT IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!

[tox]
minversion = 3.24
envlist = default
minversion = 4.2
# envlist = default
isolated_build = True

[gh]
python =
3.8: py38
3.12: py312


[testenv]
description = Invoke pytest to run automated tests
Expand Down

0 comments on commit da1f5ac

Please sign in to comment.