Skip to content

Commit fad24b5

Browse files
committed
Try to fix coverage
1 parent ab97a00 commit fad24b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,23 @@ jobs:
3636
run: uv sync --all-extras --dev
3737

3838
- name: Run tests
39-
run: uv run inv pytest --junit --no-pty --base
39+
run: uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests
4040

4141
- name: Run isolated tests
42-
run: uv run inv pytest --junit --no-pty --isolated
42+
run: uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests_isolated
4343

4444
- name: Upload test results to Codecov
4545
if: ${{ !cancelled() }}
4646
uses: codecov/test-results-action@v1
4747
with:
48-
files: ./junit.xml,!./cache
4948
flags: python${{ matrix.python-version }}
5049
name: codecov-umbrella-test-results
5150
token: ${{ secrets.CODECOV_TOKEN }}
5251
- name: Upload coverage to Codecov
5352
uses: codecov/codecov-action@v5
5453
with:
55-
directory: ./coverage/reports/
5654
env_vars: OS,PYTHON
5755
fail_ci_if_error: true
58-
files: ./coverage1.xml,./coverage2.xml,!./cache
5956
flags: unittests
6057
name: codecov-umbrella
6158
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)