From ea1e014e4f7a6aa6a9530b6f6bdbc11a1f0faebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20G=C3=B3mez?= Date: Tue, 21 Mar 2023 13:33:20 +0100 Subject: [PATCH 1/2] Updating workflow permissions --- .github/workflows/run_tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index bf778a1b..f912a847 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -27,7 +27,10 @@ jobs: build: runs-on: ubuntu-latest - + permissions: + pull-requests: write + contents: read + id-token: write steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 From 6cd7fa09acd5b9c2a911aa42a5995c553cb714f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20G=C3=B3mez?= Date: Sun, 26 Mar 2023 19:34:32 +0200 Subject: [PATCH 2/2] Only run on PRs --- .github/workflows/run_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index f912a847..c2b0a6c2 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -61,6 +61,7 @@ jobs: pytest -ra --error-for-skips --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=../../torchquad . | tee pytest-coverage.txt - name: pytest coverage comment uses: MishaKav/pytest-coverage-comment@main + if: github.event_name == 'pull_request' with: pytest-coverage-path: ./torchquad/tests/pytest-coverage.txt title: Coverage Report