Skip to content

Commit

Permalink
Test using tox w/ GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wswld committed Jan 22, 2024
1 parent 16f3e5e commit 5f0d070
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
pip install -r requirements/test.txt
- name: Lint with flake8
run: |
flake8 ddt.py test
# - name: Lint with flake8
# run: |
# flake8 ddt.py test
- name: Test with pytest
run: |
pytest
tox
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ commands =
max-line-length = 127
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,.tox,.venv
max-complexity = 10

[gh-actions]
python =
3.8: py38
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310

0 comments on commit 5f0d070

Please sign in to comment.