File tree Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : Codecov
2
2
3
- on :
4
- push :
5
- branches :
6
- - master
7
- pull_request :
8
- branches :
9
- - master
10
-
3
+ on : [push, pull_request, workflow_dispatch]
11
4
jobs :
12
- codecov :
5
+ run :
13
6
runs-on : ubuntu-latest
14
-
15
7
steps :
16
- - name : Checkout code
8
+ - name : Checkout
17
9
uses : actions/checkout@v4
18
-
10
+ with :
11
+ fetch-depth : 0
19
12
- name : Set up Python 3.12
20
13
uses : actions/setup-python@v4
21
14
with :
22
- python-version : " 3.12"
23
-
15
+ python-version : ' 3.12'
24
16
- name : Install dependencies
25
17
run : |
26
18
python -m pip install --upgrade pip setuptools wheel
27
- python -m pip install -U pymavlink pytest pytest-cov coverage mock
28
- pip install build
29
- pip install -U .
19
+ python -m pip install pymavlink pytest pytest-cov coverage mock
30
20
31
- - name : Test with unittest
32
- run : |
33
- coverage run -m pytest
34
- coverage xml -o unittests/coverage.xml
21
+ - name : Run tests and collect coverage
22
+ run : pytest --cov MethodicConfigurator
35
23
36
24
- name : Upload coverage report
37
25
38
26
with :
39
- token : ${{ secrets.CODECOV_TOKEN }}
27
+ verbose : true
28
+ env :
29
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments