-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (42 loc) · 1.08 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
47
48
49
name: codecov
on:
push:
branches: [main,dev]
pull_request:
branches: [main,dev]
jobs:
codecov-job:
runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version:
# - 3.9
# env:
# PYTHON_FOR_COVERAGE: "3.9"
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install apt-dependencies
run: |
make apt-packages-ubuntu
- name: Install python-dependencies
run: |
make deps
- name: Run coverage
run: |
coverage erase
coverage run --include=pipewire_python/* -m pytest -v -ra
coverage report -m
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
# if: "contains(env.USING_COVERAGE, matrix.python-version)"
with:
files: ./coverage.xml
token: "${{ secrets.CODECOV_TOKEN }}"
fail_ci_if_error: true
verbose: true