-
Notifications
You must be signed in to change notification settings - Fork 232
42 lines (40 loc) · 1.05 KB
/
code-coverage.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
name: Code Coverage Analysis
on:
push:
branches:
- develop
pull_request:
branches:
- develop
types:
- opened
- edited
- reopened
- synchronize
- unlocked
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python generate_requirements.py
pip install --upgrade pip setuptools wheel
pip install -r requirements-dev.txt
- name: Run test and generate coverage report
run: |
pip install pytest-cov
pip install codecov
pytest --cov=./ --cov-report=xml
- name: Upload coverage information to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}
#verbose: true