From 3b2aadee54b52939a37a8b0051f2a69c1c6a66d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Perceval=20Wajsb=C3=BCrt?= Date: Mon, 18 Nov 2024 16:23:22 +0100 Subject: [PATCH] ci: drop codecov --- .github/workflows/tests.yml | 20 +++++++++++++++++--- README.md | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2acfdfdf..d1ef7911 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,9 +44,23 @@ 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 + + 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 diff --git a/README.md b/README.md index 4c3e02f3..3112dc1d 100644 --- a/README.md +++ b/README.md @@ -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