From cad0a9bca36d62717e1bfb3238f1dffa1f63da49 Mon Sep 17 00:00:00 2001 From: Ignasi Fosch Date: Sat, 1 Feb 2025 14:21:14 +0100 Subject: [PATCH] Add coveralls for Python code --- .github/workflows/test.yaml | 2 +- README.md | 2 ++ appu/dev-requirements.txt | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8880b44..cc5a43c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: - name: Build Docker image run: docker build --pull --rm -f "appu/Dockerfile" -t appu appu/. - name: Run tests in Docker container - run: docker run --rm appu /bin/sh -c 'pip install -r dev-requirements.txt; python -m pytest' + run: docker run --rm appu /bin/sh -c 'pip install -r dev-requirements.txt; python -m pytest --cov profile.cov --cov-report; coveralls' test: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index b47a051..8eb3544 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # appu +[![Coverage Status](https://coveralls.io/repos/github/EDyO/appu/badge.svg)](https://coveralls.io/github/EDyO/appu) + **A**utomatic **P**odcast **PU**blisher, aka appu, is a toolkit for podcast edition and publishing. ## Rationale diff --git a/appu/dev-requirements.txt b/appu/dev-requirements.txt index 4d81cc2..74a243f 100644 --- a/appu/dev-requirements.txt +++ b/appu/dev-requirements.txt @@ -13,3 +13,5 @@ pytest==5.4.2 six==1.14.0 wcwidth==0.1.9 zipp==3.1.0 +coverage==7.6.10 +python-coveralls==2.9.3