From 7b246f60c737a454e787d864bc60cf8821a9ef5e Mon Sep 17 00:00:00 2001 From: Israel Martinez Date: Fri, 19 Jul 2024 17:32:13 -0400 Subject: [PATCH 1/2] Attempt alternative way to pass token --- .github/workflows/unit_tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index bb9df1d0..13c846f5 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -28,5 +28,7 @@ jobs: pytest tests --junitxml=junit/test-results.xml --cov=cosipy --cov-report=xml --cov-report=html - name: Codecov uses: codecov/codecov-action@v4.2.0 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + \ No newline at end of file From 5be3b9b4289fcc8202a654fa5d250f0ed225000e Mon Sep 17 00:00:00 2001 From: Israel Martinez Date: Fri, 19 Jul 2024 17:43:00 -0400 Subject: [PATCH 2/2] Try being flexible with version --- .github/workflows/unit_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 13c846f5..ba18cd5c 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -27,7 +27,7 @@ jobs: pip install pytest pytest-cov pytest tests --junitxml=junit/test-results.xml --cov=cosipy --cov-report=xml --cov-report=html - name: Codecov - uses: codecov/codecov-action@v4.2.0 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true