Skip to content

Commit

Permalink
ci: drop codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Nov 18, 2024
1 parent cb6062f commit 965326d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,24 @@ jobs:
- name: Test with Pytest on Python ${{ matrix.python-version }}
run: hatch run tests

- name: Upload coverage
uses: codecov/codecov-action@v2
if: matrix.python-version == '3.10'
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ matrix.python-version }}
path: .coverage.*
if-no-files-found: ignore
include-hidden-files: true

Coverage:
name: Coverage
needs: Pytest
uses: aphp/foldedtensor/.github/workflows/coverage.yml@main
with:
base-branch: main
coverage-data-pattern: coverage-data-*
coverage-report: coverage.txt
coverage-badge: coverage.svg
coverage-branch: coverage

Documentation:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![Tests](https://img.shields.io/github/actions/workflow/status/aphp/edspdf/tests.yml?branch=main&label=tests&style=flat-square)
[![Documentation](https://img.shields.io/github/actions/workflow/status/aphp/edspdf/documentation.yml?branch=main&label=docs&style=flat-square)](https://aphp.github.io/edspdf/latest/)
[![PyPI](https://img.shields.io/pypi/v/edspdf?color=blue&style=flat-square)](https://pypi.org/project/edspdf/)
[![Codecov](https://img.shields.io/codecov/c/github/aphp/edspdf?logo=codecov&style=flat-square)](https://codecov.io/gh/aphp/edspdf)
[![Coverage](https://raw.githubusercontent.com/aphp/edspdf/coverage/coverage.svg)](https://raw.githubusercontent.com/aphp/edspdf/coverage/coverage.txt)
[![DOI](https://zenodo.org/badge/517726737.svg)](https://zenodo.org/badge/latestdoi/517726737)

# EDS-PDF
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dependencies = [
]

[tool.hatch.envs.default.scripts]
tests = "pytest --cov=edspdf --cov-report=term-missing --cov-report=xml"
tests = "coverage run -m pytest"

[tool.hatch.envs.docs]
dependencies = [
Expand Down Expand Up @@ -141,13 +141,10 @@ whitelist-regex = []
color = true
omit-covered-files = false

[tool.coverage.run]
concurrency = ["multiprocessing"]

[tool.coverage.report]
include = [
"edspdf/*",
]
precision = 2
include = ["edspdf/*"]
omit = ["tests/*"]
exclude_lines = [
"def __repr__",
"if __name__ == .__main__.:",
Expand All @@ -163,6 +160,11 @@ exclude_lines = [
"@(abc\\.)?abstractmethod",
]

[tool.coverage.run]
include = ["edspdf/*"]
concurrency = ["multiprocessing", "thread"]
parallel = true

[tool.pytest.ini_options]
testpaths = [
"tests",
Expand Down

0 comments on commit 965326d

Please sign in to comment.