Skip to content

Commit 32d1f03

Browse files
fix: correct codecov-action parameter and simplify cross-platform steps
- Change 'file' to 'files' parameter for codecov-action@v5 - Use python -m pip/pytest directly without venv for cross-platform compatibility - Single unified steps work on all OS (macOS, Ubuntu, Windows)
1 parent 611502b commit 32d1f03

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,21 @@ jobs:
3434
- name: Install Rust Toolchain
3535
run: rustup toolchain install stable --profile minimal --no-self-update
3636
- name: Install requirements
37-
shell: bash
3837
run: |
39-
python -m venv venv
40-
source venv/bin/activate
41-
pip install maturin
42-
pip install -r tests/requirements.txt
38+
python -m pip install --upgrade pip
39+
python -m pip install maturin
40+
python -m pip install -r tests/requirements.txt
4341
maturin develop
4442
- name: Run tests
45-
shell: bash
46-
run: |
47-
source venv/bin/activate
48-
python -m pytest --cov-report=xml:coverage.xml --cov=. --junitxml=unit.junit.xml
43+
run: python -m pytest --cov-report=xml:coverage.xml --cov=. --junitxml=unit.junit.xml
4944

5045
- name: Upload results to codecov
5146
if: ${{ !cancelled() }}
5247
uses: codecov/codecov-action@v5
5348
with:
5449
token: ${{ secrets.CODECOV_ORG_TOKEN }}
5550
url: ${{ secrets.CODECOV_URL }}
56-
file: unit.junit.xml
51+
files: unit.junit.xml
5752
disable_search: true
5853
report_type: test-results
5954

@@ -63,6 +58,6 @@ jobs:
6358
with:
6459
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
6560
url: ${{ secrets.CODECOV_STAGING_API_URL }}
66-
file: unit.junit.xml
61+
files: unit.junit.xml
6762
disable_search: true
6863
report_type: test-results

0 commit comments

Comments
 (0)