use pipenv to run tests and linting

This commit is contained in:
Xevion
2020-04-21 12:55:19 -05:00
parent d4d519c398
commit 6650da1172

View File

@@ -22,11 +22,11 @@ jobs:
pipenv sync pipenv sync
- name: Linting - name: Linting
run: | run: |
pip install pycodestyle pipenv run pip install pycodestyle
# PyCharm sets line length at 120 chars # PyCharm sets line length at 120 chars
pycodestyle . --count --statistics --max-line-length=120 pipenv run pycodestyle . --count --statistics --max-line-length=120
- name: Test with pytest - name: Test with pytest
run: | run: |
pip install pytest pipenv run pip install pytest
cd triple-dungeon cd triple-dungeon
pytest tests.py pipenv run pytest tests.py