Skip to content

Commit e29ee24

Browse files
committed
upload test coverage with Github Actions
1 parent 754e3f1 commit e29ee24

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

azure-pipelines.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@ pr:
66
- "*"
77

88
jobs:
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

0 commit comments

Comments
 (0)