-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.13 KB
/
coverage-report.yml
File metadata and controls
50 lines (41 loc) · 1.13 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Code-Coverage Report
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
analyze:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
permissions: write-all
name: CI analyze
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: "3.10.x"
- name: Install obligatory dependencies
run: pip3 install -r requirements.txt
- name: Install pytest
run: pip3 install pytest
- name: Install coverage
run: pip3 install coverage
- name: Add temporary PYTHONPATH and run coverage
run: PYTHONPATH=lib coverage run -m pytest tests/
shell: bash
- name: Convert coverage report to XML format
run: coverage xml
- name: Run Codecov-Action
uses: codecov/codecov-action@v2
with:
token: ${{ github.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true