File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test coverage
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ coverage :
9+ steps :
10+ - uses : actions/checkout@v1
11+ - name : Set up Python ${{ matrix.python-version }}
12+ uses : actions/setup-python@v2
13+ with :
14+ python-version : 3.7
15+ - name : Install dependencies
16+ run : |
17+ python -m pip install --upgrade pip
18+ pip install tox tox-gh-actions codecov
19+ - name : Test with tox
20+ run : tox -e py37-alldeps-linux,report
21+ - name : Upload test coverage
22+ run : codecov -t ${{ secrets.CODECOV_TOKEN }} -f .coverage.xml
Original file line number Diff line number Diff line change 66 - " *"
77
88jobs :
9- - job : coverage
10- steps :
11- - task : UsePythonVersion@0
12- inputs :
13- versionSpec : ' 3.7'
14- - script : pip install tox
15- displayName : Install tox
16- - script : tox -e py37-alldeps,report
17- displayName : Run the tests and generate coverage
18- - script : |
19- pip install codecov
20- codecov -t $(CODECOV_TOKEN) -f .coverage.xml
21- displayName: Test upload coverage
22-
239- job : pre_commit
2410 steps :
2511 - task : UsePythonVersion@0
You can’t perform that action at this time.
0 commit comments