-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (31 loc) · 1.14 KB
/
run_codecov.yml
File metadata and controls
32 lines (31 loc) · 1.14 KB
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
name: Run Codecov
on: [push]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8]
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python }}
- name: Generate coverage report
run: |
pip install -r requirements_dev.txt
pip install pytest-cov
pytest --cov-config=.coveragerc --cov=system_intelligence/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
#TODO COOKIETEMPLE: If your repository is private you are required to set a CODECOV_TOKEN as a secret into your Github repository.
#See: https://docs.codecov.io/docs/about-the-codecov-bash-uploader#upload-token and
#https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets.
#No token is required if your repository is public.
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false