Restore state at 1.3.2 #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install ZanzoCam | |
run: | | |
sudo apt-get install language-pack-it wireless-tools | |
pip install Pillow requests piexif pytest pytest-coverage pytest-subprocess freezegun coveralls flask | |
pip install --no-deps -e . | |
- name: Unit tests | |
run: coverage run --source=zanzocam/webcam -m pytest tests/unit_tests/ | |
- name: Coveralls.io | |
run: | | |
coveralls | |
coveralls --finish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_PARALLEL: true | |
COVERALLS_SERVICE_NAME: 'github' |