From a69d209c6cd0254bc1f617a4613a7f8831a7a6af Mon Sep 17 00:00:00 2001 From: Rohith Surya Podugu Date: Sun, 14 Jul 2024 23:29:23 -0700 Subject: [PATCH 1/2] Testing new coverage tool --- .github/workflows/pytest-coverage.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest-coverage.yaml b/.github/workflows/pytest-coverage.yaml index ac771a3..db99d25 100644 --- a/.github/workflows/pytest-coverage.yaml +++ b/.github/workflows/pytest-coverage.yaml @@ -14,6 +14,9 @@ jobs: coverage: name: PyTest coverage runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write steps: - uses: actions/checkout@v4 - name: Install python @@ -29,7 +32,6 @@ jobs: - name: Run Coverage run: $POETRY run coverage xml - name: Get Cover - uses: orgoro/coverage@v3.1 + uses: py-cov-action/python-coverage-comment-action@v3 with: - coverageFile: ./coverage.xml - token: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 53575399db9258628fd265ddf0794ca1690cc970 Mon Sep 17 00:00:00 2001 From: Rohith Surya Podugu Date: Sun, 14 Jul 2024 23:44:39 -0700 Subject: [PATCH 2/2] Create .coveragerc --- .coveragerc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..95dd0be --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +relative_files=True