-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 922 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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'