Skip to content

Commit

Permalink
Use pytest in github actions (MiczFlor#918)
Browse files Browse the repository at this point in the history
* Use pytest in github actions

* add dependency mock

* change working directory

* add dependency to requirements.txt

* use requirements.txt from gpio_control
  • Loading branch information
s-martin authored May 2, 2020
1 parent 35d72d2 commit 90eab5b
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -30,7 +30,8 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --filename=*.py,*.py.*
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --filename=*.py,*.py.*
#- name: Test with pytest
# run: |
# pip install pytest
# pytest
- name: Test with pytest
working-directory: ./components/gpio_control
run: |
pip install -r requirements.txt
pytest
1 change: 1 addition & 0 deletions components/gpio_control/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

python-mpd2
mock

0 comments on commit 90eab5b

Please sign in to comment.