Skip to content

Commit 4645390

Browse files
committed
trying to make github-actions use tox
1 parent aad6b56 commit 4645390

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/push-actions.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ on: [push]
33
jobs:
44
run-tests:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: [3.6, 3.9]
69
steps:
710
- uses: actions/checkout@v2
811
- uses: actions/setup-python@v2
9-
- run: pip install -e .
10-
- run: pip install pytest pytest-cov
11-
- run: python -m pytest --cov mascado tests
12+
with:
13+
python-version: ${{ matrix.python-version}}
14+
- run: pip install tox tox-gh-actions
15+
- run: tox

tox.ini

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[tox]
2-
envlist = py36
3-
py39
2+
envlist = py36, py39
3+
4+
[gh-actions]
5+
python =
6+
3.6: py36
7+
3.9: py39
48

59
[flake8]
610
exclude = .tox,*.egg,.git,__pycache__,dist

0 commit comments

Comments
 (0)