Skip to content

Commit f9287d7

Browse files
authored
codecov maintenance (#315)
* set env variables used by codecov * upload using a token * use the newer way of customizing the cov file path
1 parent b243963 commit f9287d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ jobs:
6565
with:
6666
environments: "${{ matrix.env }}"
6767

68+
- name: investigate env variables
69+
run: |
70+
echo PYTHON_VERSION=$(pixi run -e ${{ matrix.env }} python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') >> $GITHUB_ENV
71+
echo RUNNER_OS="${{ matrix.os }}"
72+
6873
- name: import pint-xarray
6974
run: |
7075
pixi run -e ${{ matrix.env }} python -c 'import pint_xarray'
@@ -78,7 +83,8 @@ jobs:
7883
- name: Upload code coverage to Codecov
7984
uses: codecov/[email protected]
8085
with:
81-
file: ./coverage.xml
86+
token: "${{ secrets.CODECOV_TOKEN }}"
87+
files: ./coverage.xml
8288
flags: unittests
8389
env_vars: RUNNER_OS,PYTHON_VERSION
8490
name: codecov-umbrella

0 commit comments

Comments
 (0)