Skip to content

Commit

Permalink
tox-gh-actions plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jtisbell4 committed Apr 18, 2024
1 parent 5e2554a commit f29e5b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- dbr142
- dbr133
# - dbr122
# - dbr113
# - dbr104
# - dbr91
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/setup-python@v4
with:
python-version: |
3.8
3.9
3.10
- uses: actions/checkout@v3
- name: Install tox
run: pip install tox
- name: Run tox
working-directory: ./python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
tox -e ${{ matrix.env }}
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
working-directory: ./python
run: tox
- name: Generate coverage report
working-directory: ./python
run: |
Expand Down
5 changes: 5 additions & 0 deletions python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ envlist =
dbr{91,104,113,122,133,142}
skip_missing_interpreters = true

[gh-actions]
python =
3.8: dbr91, dbr104
3.9: dbr113, dbr122
3.10: dbr133, dbr142

[testenv]
description = run the tests under {envname}
Expand Down

0 comments on commit f29e5b7

Please sign in to comment.