-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.18 KB
/
codecov.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
39
40
41
42
43
44
45
46
name: Upload coverage to Codecov
on: [push]
defaults:
run:
shell: bash
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
env:
OS: ${{ matrix.os }}
PYTHON: '3.7'
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.7
- name: Setup non-python dependencies.
run: |
sudo tools/setup/install-shellcheck
sudo tools/setup/install-shfmt
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
- name: Generate coverage report
run: |
PYTHONPATH=src pytest --cov=./ --cov-report=xml
- name: Run linters.
run: |
./tools/lint
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml,./coverage1.xml,./coverage2.xml
directory: ./coverage/reports/
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
path_to_write_report: ./coverage/codecov_report.txt
verbose: true