Skip to content

Commit 11743d6

Browse files
committed
upload coverage and include Python 3.8
1 parent f3a8aa1 commit 11743d6

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

azure-pipelines.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,24 @@ jobs:
2525
displayName: 'Install tox'
2626
- script: tox -e py37
2727
displayName: 'Run the tests'
28-
- script: tox -e clean,report
28+
- script: tox -e report
2929
displayName: 'Test coverage'
30+
- script: |
31+
pip install codecov
32+
codecov -t $(CODECOV_TOKEN) -f .coverage.xml
33+
displayName: 'Test upload coverage'
34+
- script: tox -e clean
35+
displayName: 'Test cleanup'
36+
37+
- job: pytest38
38+
steps:
39+
- task: UsePythonVersion@0
40+
inputs:
41+
versionSpec: '3.8'
42+
- script: pip install tox
43+
displayName: 'Install tox'
44+
- script: tox -e py38
45+
displayName: 'Run the tests'
3046

3147
- job: pre_commit
3248
steps:

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[tox]
33
isolated_build = True
4-
envlist = clean,py{36,37},report,pre-commit
4+
envlist = clean,py{36,37,38},report,pre-commit
55

66
[pytest]
77
testpaths = adaptive
@@ -33,8 +33,8 @@ deps = .[testing,other]
3333
commands =
3434
pytest
3535
depends =
36-
{py36,py37}: clean
37-
report: {py36,py37}
36+
{py36,py37,py38}: clean
37+
report: {py36,py37,py38}
3838

3939
[testenv:report]
4040
deps = coverage

0 commit comments

Comments
 (0)