-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (37 loc) · 1.02 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
name: Codecov
on: [push, pull_request]
jobs:
run:
name: test ${{ matrix.os }} / ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.8","3.9","3.10","3.11"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@master
- uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python }}
- name: install deps
run: |
pdm use -f $PYTHON
pdm install -d
- name: Generate coverage report
run: |
pdm run pytest --cov=./ --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: false
files: ./coverage.xml
flags: unittests
name: codecov-aiopenapi3
path_to_write_report: ./coverage/codecov_report.txt
verbose: true