Skip to content

Commit 5dde444

Browse files
Fix CI
1 parent 1f6b9ef commit 5dde444

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ jobs:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install dependencies
2828
run: |
29+
sudo apt-get install tox
2930
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest
31+
python -m pip install flake8
3132
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3233
- name: Lint with flake8
3334
run: |
3435
# stop the build if there are Python syntax errors or undefined names
3536
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3637
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3738
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38-
- name: Test with pytest
39+
- name: Test with Tox
3940
run: |
40-
pytest
41+
tox -e py -v

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[tox]
2+
envlist = py39
3+
4+
[testenv]
5+
deps =
6+
pytest
7+
pexpect
8+
pyte
9+
commands =
10+
pytest tests/

0 commit comments

Comments
 (0)