From 6f21280533ad0d0a8a2ab2dec5f3fb746b0638e3 Mon Sep 17 00:00:00 2001 From: David Orme Date: Fri, 15 Sep 2023 14:05:32 +0100 Subject: [PATCH] Adding CODECOV secret env variable to CI actions --- .github/workflows/pyrealm_ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pyrealm_ci.yaml b/.github/workflows/pyrealm_ci.yaml index 372d6301..6f7a4695 100644 --- a/.github/workflows/pyrealm_ci.yaml +++ b/.github/workflows/pyrealm_ci.yaml @@ -39,9 +39,11 @@ jobs: - name: Run tests run: poetry run pytest - - name: Run codecov + - name: Upload coverage reports to Codecov if: success() && (matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9) uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} docs_build: needs: qa