From 7c2df9f6df94209a97972b5c8cd68511a2350c9a Mon Sep 17 00:00:00 2001 From: MarcoHuebner Date: Mon, 11 Mar 2024 21:51:55 +0100 Subject: [PATCH] Add coverage report upload and update readme badge link #24 --- .github/workflows/run-tests.yaml | 6 ++++++ README.md | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index a2aed85..cedf0b2 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -47,6 +47,12 @@ jobs: run: | poetry run coverage run -m pytest poetry run coverage json -o assets/coverage.json + - name: Upload documentation as artifacts + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: assets/coverage.json + retention-days: 365 code-quality: runs-on: ${{ matrix.os }} diff --git a/README.md b/README.md index f4831ce..3616547 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # ``pystatis`` ![Tests, Code Quality and Documentation](https://github.com/CorrelAid/pystatis/actions/workflows/run-tests.yaml/badge.svg?event=push) -![Code Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgithub.com%2FCorrelAid%2Fpystatis%2Ftree%2Ffeature%2Ftest-coverage-improval%2Fassets%2Fcoverage.json&query=%24.totals.percent_covered_display&label=Code%20Coverage -) +![Code Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgithub.com%2FCorrelAid%2Fpystatis%2Factions%2Fartifacts%2Fcoverage-report&query=%24.totals.percent_covered_display&label=Code%20Coverage) ![GitHub Pages Documentation](https://github.com/CorrelAid/pystatis/actions/workflows/deploy-docs.yaml/badge.svg?event=push) ```pystatis``` is a Python wrapper for the different GENESIS web service interfaces (API). Currently we are supporting the following databases: