From 94335c821b240279c59506da6b6a56af82d5c7aa Mon Sep 17 00:00:00 2001 From: Oskar Taubert Date: Tue, 24 Oct 2023 13:29:59 +0200 Subject: [PATCH 1/6] generate coverage badge without external action --- .github/workflows/python-test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 2ff8b7de..c7c8a27a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -19,6 +19,7 @@ jobs: run: | python -m pip install --upgrade pip pip install ruff pytest pytest-cov + pip install coverage-badge pip install -r requirements.txt pip install . - name: Lint with ruff @@ -30,8 +31,12 @@ jobs: - name: Test with pytest run: | pytest --cov=propulate - - name: Coverage Badge - uses: tj-actions/coverage-badge-py@v2 + coverage-badge + ls -a + # - name: Coverage Badge + # uses: tj-actions/coverage-badge-py@v2 + - name: debug + run: git status - name: Verify Changed files uses: tj-actions/verify-changed-files@v16 From 6c4f44eb2545012a8f572849f62edd37d1f69612 Mon Sep 17 00:00:00 2001 From: Oskar Taubert Date: Tue, 24 Oct 2023 13:41:07 +0200 Subject: [PATCH 2/6] added init to tests folder --- tests/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/__init__.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b From 5464f3fd7f3c206773a77a2a7f4f4cb782c4d706 Mon Sep 17 00:00:00 2001 From: Oskar Taubert Date: Tue, 24 Oct 2023 13:48:30 +0200 Subject: [PATCH 3/6] added coverage badge back in --- .github/workflows/python-test.yml | 7 +------ README.md | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index c7c8a27a..376bfce1 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,12 +31,7 @@ jobs: - name: Test with pytest run: | pytest --cov=propulate - coverage-badge - ls -a - # - name: Coverage Badge - # uses: tj-actions/coverage-badge-py@v2 - - name: debug - run: git status + coverage-badge -o coverage.svg - name: Verify Changed files uses: tj-actions/verify-changed-files@v16 diff --git a/README.md b/README.md index 19ad1c0b..88ce0dc3 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/7785/badge)](https://www.bestpractices.dev/projects/7785) [![](https://img.shields.io/badge/Contact-marie.weiel%40kit.edu-orange)](mailto:marie.weiel@kit.edu) [![Documentation Status](https://readthedocs.org/projects/propulate/badge/?version=latest)](https://propulate.readthedocs.io/en/latest/?badge=latest) +![](./coverage.svg) # **Click [here](https://www.scc.kit.edu/en/aboutus/16956.php) to watch our 3 min introduction video!** From 218441247ba6016b9853d7d3b6ddfd96a585ddb5 Mon Sep 17 00:00:00 2001 From: Oskar Taubert Date: Tue, 24 Oct 2023 13:52:00 +0200 Subject: [PATCH 4/6] added overwrite existing coverage badge svg --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 376bfce1..46c59ae6 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,7 +31,7 @@ jobs: - name: Test with pytest run: | pytest --cov=propulate - coverage-badge -o coverage.svg + coverage-badge -of coverage.svg - name: Verify Changed files uses: tj-actions/verify-changed-files@v16 From 50277dcc12a176ec2457b971a95c5a5b4a354d86 Mon Sep 17 00:00:00 2001 From: Oskar Taubert Date: Tue, 24 Oct 2023 13:56:35 +0200 Subject: [PATCH 5/6] fixed flag order --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 46c59ae6..7e37d3d1 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,7 +31,7 @@ jobs: - name: Test with pytest run: | pytest --cov=propulate - coverage-badge -of coverage.svg + coverage-badge -fo coverage.svg - name: Verify Changed files uses: tj-actions/verify-changed-files@v16 From 6e22dddcda7e8532ce1e1f390998a4cb5397c151 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 24 Oct 2023 11:58:36 +0000 Subject: [PATCH 6/6] Updated coverage.svg --- coverage.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coverage.svg b/coverage.svg index 15cf15b2..9d027c7d 100644 --- a/coverage.svg +++ b/coverage.svg @@ -9,13 +9,13 @@ - + coverage coverage - 0% - 0% + 49% + 49%