Skip to content

Commit df1d184

Browse files
authored
chore: cover more python versions in test workflow (#42)
1 parent 57efdc1 commit df1d184

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on: [pull_request]
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-20.04
88
strategy:
99
matrix:
10-
python-version: [ "3.6" ]
10+
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11" ]
1111
steps:
1212
- name: Checkout source code
1313
uses: actions/checkout@v3
@@ -18,4 +18,6 @@ jobs:
1818
python-version: ${{ matrix.python-version }}
1919

2020
- name: Unit Test
21-
run: python -m unittest discover -s ./src -p 'test_*.py'
21+
run: |
22+
pip3 install --user tox
23+
python3 -m tox -e py

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tox]
2+
envlist =
3+
py
4+
5+
[testenv]
6+
commands =
7+
python -m unittest discover -s ./src -p 'test_*.py'

0 commit comments

Comments
 (0)