File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
- env :
4
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5
-
6
- on :
7
- push :
8
-
9
-
2
+ on : [push]
10
3
jobs :
11
4
build :
12
5
runs-on : ubuntu-latest
16
9
version : [2.7, 3.6, 3.8]
17
10
18
11
steps :
19
- - uses : actions/checkout@v2
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
20
14
- name : Set up Python ${{ matrix.python-version }}
21
15
uses : actions/setup-python@v2
22
16
with :
23
17
python-version : ${{ matrix.version }}
24
18
- name : Install Dependencies
25
19
run : |
26
20
python -m pip install --upgrade pip
27
- pip install pytest mock codecov
28
- python setup.py install
21
+ pip install pytest mock pytest-cov
22
+ pytest --cov=./ --cov-report=xml
23
+ python setup.py install
29
24
- name : Run Tests
30
25
run : |
31
- coverage run -m pytest -v
32
- - name : Upload to codecov.io
33
- run : bash <(curl -s https://codecov.io/bash)
26
+ python -m pytest -v
27
+ - name : upload coverage to Codecov
28
+ uses : codecov/codecov-action@v1
29
+ with :
30
+ token : ${{ secrets.CODECOV_TOKEN }}
31
+ name : codecov-umbrella
32
+ fail_ci_if_error : true
33
+ verbose : true
You can’t perform that action at this time.
0 commit comments