From f410addad5d4bd4091d2fb5c6eac7a7a81dccb68 Mon Sep 17 00:00:00 2001 From: Miranda Mundt Date: Thu, 2 Mar 2023 10:01:54 -0700 Subject: [PATCH 1/2] Turn off codecoverage uploads for branch tests --- .github/workflows/test_branches.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_branches.yml b/.github/workflows/test_branches.yml index 142c546a727..74b5a0a1b02 100644 --- a/.github/workflows/test_branches.yml +++ b/.github/workflows/test_branches.yml @@ -675,7 +675,7 @@ jobs: cover: name: process-coverage-${{ matrix.TARGET }} needs: build - if: always() # run even if a build job fails + if: ${{ false }} # turn off for branches runs-on: ${{ matrix.os }} timeout-minutes: 10 strategy: From e8ba71a16aad8356b7923b7f7b071776b7eb17d3 Mon Sep 17 00:00:00 2001 From: Miranda Mundt Date: Thu, 2 Mar 2023 11:19:09 -0700 Subject: [PATCH 2/2] Update codecov uploader for token --- .github/workflows/test_branches.yml | 2 ++ .github/workflows/test_pr_and_main.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test_branches.yml b/.github/workflows/test_branches.yml index 74b5a0a1b02..7700a529663 100644 --- a/.github/workflows/test_branches.yml +++ b/.github/workflows/test_branches.yml @@ -807,6 +807,7 @@ jobs: uses: codecov/codecov-action@v3 with: files: coverage.xml + token: ${{ secrets.PYOMO_CODECOV_TOKEN }} name: ${{ matrix.TARGET }} flags: ${{ matrix.TARGET }} fail_ci_if_error: true @@ -818,6 +819,7 @@ jobs: uses: codecov/codecov-action@v3 with: files: coverage-other.xml + token: ${{ secrets.PYOMO_CODECOV_TOKEN }} name: ${{ matrix.TARGET }}/other flags: ${{ matrix.TARGET }},other fail_ci_if_error: true diff --git a/.github/workflows/test_pr_and_main.yml b/.github/workflows/test_pr_and_main.yml index 57daa9570a8..bea94cfcea3 100644 --- a/.github/workflows/test_pr_and_main.yml +++ b/.github/workflows/test_pr_and_main.yml @@ -828,6 +828,7 @@ jobs: uses: codecov/codecov-action@v3 with: files: coverage.xml + token: ${{ secrets.PYOMO_CODECOV_TOKEN }} name: ${{ matrix.TARGET }} flags: ${{ matrix.TARGET }} fail_ci_if_error: true @@ -839,6 +840,7 @@ jobs: uses: codecov/codecov-action@v3 with: files: coverage-other.xml + token: ${{ secrets.PYOMO_CODECOV_TOKEN }} name: ${{ matrix.TARGET }}/other flags: ${{ matrix.TARGET }},other fail_ci_if_error: true