Skip to content

Commit

Permalink
Reconfigure codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Dec 5, 2023
1 parent e7a3503 commit 903e871
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
codecov:
notify:
after_n_builds: 16

comment:
after_n_builds: 16
wait_for_ci: true

coverage:
status:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: python -m ipykernel install --name python_kernel --user

- name: Run the tests
run: pytest tests/${{ matrix.coverage }} --cov -n logical
run: pytest tests/${{ matrix.coverage }} -n logical --cov --cov-report=xml

- name: Upload the coverage
uses: codecov/codecov-action@v3
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/step_tests-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,10 @@ jobs:
python -m jupyterlab.browser_check
- name: Test with pytest
# We use an explicit coverage file otherwise the
# codecov action below does not find it
run: pytest -n logical --cov . --cov-report xml:coverage.xml
run: pytest -n logical --cov --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true
files: coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/step_tests-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
python -m jupyterlab.browser_check
- name: Test with pytest
run: pytest --cov -n logical
run: pytest -n logical --cov --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@v3
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,3 @@ omit = [
"tests/*",
"src/jupytext/version.py",
]

[tool.coverage.xml]
output = "coverage.xml"

0 comments on commit 903e871

Please sign in to comment.