Skip to content

Merge pull request #36 from ZanzoCam/restore-1.3.2 #167

Merge pull request #36 from ZanzoCam/restore-1.3.2

Merge pull request #36 from ZanzoCam/restore-1.3.2 #167

Workflow file for this run

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'