Skip to content

Commit fa94e3c

Browse files
committed
ci: Azure: fix coverage generation with PyPy
While this is not used currently, it is still good for having it covered (it failed when running coverage with all jobs unconditionally).
1 parent 54c70bc commit fa94e3c

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
python.version: 'pypy'
3838
tox.env: 'pypy'
3939
python.exe: 'pypy'
40+
pypy3:
41+
python.version: 'pypy3'
42+
tox.env: 'pypy3'
43+
python.exe: 'pypy3'
4044
py34:
4145
python.version: '3.4'
4246
tox.env: 'py34'
@@ -115,5 +119,6 @@ jobs:
115119
displayName: 'Upload coverage'
116120
condition: eq(variables['PYTEST_COVERAGE'], '1')
117121
env:
122+
PYTHON: $(python.exe)
118123
CODECOV_TOKEN: $(CODECOV_TOKEN)
119124
PYTEST_CODECOV_NAME: $(tox.env)

scripts/upload-coverage.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ if "%PYTEST_COVERAGE%" == "1" (
66
) else (
77
echo CODECOV_TOKEN NOT defined
88
)
9-
python -m pip install codecov
10-
coverage combine
11-
coverage xml
12-
coverage report -m
13-
scripts\retry codecov --required -X gcov pycov search -f coverage.xml --name %PYTEST_CODECOV_NAME%
9+
%PYTHON% -m pip install codecov
10+
%PYTHON% -m coverage combine
11+
%PYTHON% -m coverage xml
12+
%PYTHON% -m coverage report -m
13+
scripts\retry %PYTHON% -m codecov --required -X gcov pycov search -f coverage.xml --name %PYTEST_CODECOV_NAME%
1414
) else (
1515
echo Skipping coverage upload, PYTEST_COVERAGE=%PYTEST_COVERAGE%
1616
)

0 commit comments

Comments
 (0)