From 3fa8ee8711aec42c94a56e25a676698f792176aa Mon Sep 17 00:00:00 2001 From: lorenzo Date: Wed, 28 Aug 2024 13:29:24 +0200 Subject: [PATCH] update cov ci --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 515a838..49e0233 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,12 @@ jobs: - name: ๐Ÿงช Run Tests run: pytest --color=yes --cov --cov-report=xml --cov-report=term-missing + - name: Upload coverage data + uses: actions/upload-artifact@v3 + with: + name: coverage-data + path: ".coverage*" + # If something goes wrong with --pre tests, we can open an issue in the repo - name: ๐Ÿ“ Report --pre Failures if: failure() && github.event_name == 'schedule' @@ -76,6 +82,20 @@ jobs: runs-on: ubuntu-latest needs: test steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: python -m pip install --upgrade coverage[toml] + + - name: Download data + uses: actions/download-artifact@v3 + with: + name: coverage-data + - name: Coverage uses: codecov/codecov-action@v4 with: