Skip to content

Commit 2b58db6

Browse files
committed
CI: fix Tox/multi-environment Codecov uploads
1 parent 95ede2f commit 2b58db6

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ jobs:
2828
python -m pip install tox tox-gh-actions==2.1.0
2929
- name: Run test via Tox
3030
run: tox --skip-missing-interpreters
31-
- uses: codecov/codecov-action@v1
31+
env:
32+
COVERAGE_XML_PATH: ${{ runner.temp }}
33+
- uses: codecov/codecov-action@v2
34+
with:
35+
directory: ${{ runner.temp }}

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ deps =
1313
whitelist_externals = make
1414
commands = make clean-cldr test
1515
setenv =
16-
PYTEST_FLAGS=--cov=babel
16+
PYTEST_FLAGS=--cov=babel --cov-report=xml:{env:COVERAGE_XML_PATH:.coverage_cache}/coverage.{envname}.xml
1717
passenv =
1818
BABEL_*
1919
PYTEST_*

0 commit comments

Comments
 (0)