Skip to content

Commit

Permalink
chore: cover more python versions in test workflow (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhuozhen committed Jan 11, 2023
1 parent 57efdc1 commit df1d184
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ "3.6" ]
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11" ]
steps:
- name: Checkout source code
uses: actions/checkout@v3
Expand All @@ -18,4 +18,6 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Unit Test
run: python -m unittest discover -s ./src -p 'test_*.py'
run: |
pip3 install --user tox
python3 -m tox -e py
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tox]
envlist =
py

[testenv]
commands =
python -m unittest discover -s ./src -p 'test_*.py'

0 comments on commit df1d184

Please sign in to comment.