-
Notifications
You must be signed in to change notification settings - Fork 31
33 lines (32 loc) · 964 Bytes
/
correction-exercice-3.yml
File metadata and controls
33 lines (32 loc) · 964 Bytes
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
name: Correction exercice 3
on: [push]
jobs:
qa:
name: Quality check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.8
- name: Run unit tests
run: |
pip install html-testRunner coverage
cd app
python -m unittest test/unit/test.py
python -m coverage run -m unittest test/unit/test.py
python -m coverage xml
- name: Wemake Python Stylguide
uses: wemake-services/wemake-python-styleguide@0.13.4
continue-on-error: true
with:
reporter: 'github-pr-review'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: app/coverage.xml
flags: unittests