From 1a9dec34c2c1596a560dbfb690c8170c124ef874 Mon Sep 17 00:00:00 2001 From: Vijay Soni Date: Fri, 15 Nov 2024 02:00:17 +0530 Subject: [PATCH] Fix coverage report comments in pull requests (#49) --- .github/workflows/pull-request.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 89f70ba..671574f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -118,6 +118,8 @@ jobs: cache: poetry - name: Install dependencies run: poetry install --all-extras + - name: Set GITHUB_TOKEN with write permissions + run: echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV - name: Build coverage file run: | poetry run pytest -n 6 --junitxml=pytest.xml --cov=src/declarativex tests/ | tee pytest-coverage.txt @@ -126,3 +128,4 @@ jobs: with: pytest-coverage-path: pytest-coverage.txt junitxml-path: pytest.xml + github-token: ${{ secrets.GITHUB_TOKEN }}