From 4465a3f5214f71743e8f97b730bff53f97ea9b9c Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Sun, 10 Mar 2024 05:47:44 +0000 Subject: [PATCH] fix: correct the report generation for coverage.py --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ee2a2e..f0821b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: push jobs: test-python: - name: test python + name: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -15,9 +15,10 @@ jobs: - run: pip install pipenv - run: pipenv install --dev -v - run: pipenv run coverage run --source=app -m pytest + - run: pipenv run coverage report + - run: pipenv run coverage xml - run: pipenv run mypy . - run: pipenv run pylint --enable-all-extensions --fail-under 5 app - uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: 1995parham-learning/fastapi101 + files: coverage.xml