-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (32 loc) · 1016 Bytes
/
code_cov_check.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
name: 'Code_coverage'
on:
push:
branches:
- main
jobs:
code_cov:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.9.7'
steps:
- uses: actions/checkout@v3
- name: 'install dependencies'
run: pip3 install -r requirements-dev.txt
- name: 'install coverage'
run: pip3 install coverage
# - name: 'navigate to unittest directory'
# run: cd unit_tests/
- name: 'Code coverage check'
run: coverage run -m unittest unit_tests/Corekaburra_test.py
# run: coverage run -m unittest Corekaburra_test
- name: 'Convert coverage to xml'
run: coverage xml -o coverage.xml
- name: 'Upload coverage report'
uses: codecov/codecov-action@v3
with:
files: coverage.xml # optional
# flags: unittests # optional
# name: codecov-Corekaburra # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)