From 18ac52953df6980f4336d4705a68ea03cbf5fc03 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Thu, 23 May 2024 17:49:48 +0430 Subject: [PATCH] fix : codecov section updated --- .github/workflows/linux_test.yml | 5 +++-- .github/workflows/macOS_test.yml | 5 +++-- .github/workflows/windows_test.yml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml index 7071aca..1f8a693 100644 --- a/.github/workflows/linux_test.yml +++ b/.github/workflows/linux_test.yml @@ -54,9 +54,10 @@ jobs: sudo python -m pydocstyle -v --match-dir=nava if: matrix.python-version == env.TEST_PYTHON_VERSION - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - fail_ci_if_error: false + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} if: matrix.python-version == env.TEST_PYTHON_VERSION - name: Version check run: | diff --git a/.github/workflows/macOS_test.yml b/.github/workflows/macOS_test.yml index 15e6f84..919efa0 100644 --- a/.github/workflows/macOS_test.yml +++ b/.github/workflows/macOS_test.yml @@ -44,7 +44,8 @@ jobs: python -m pydocstyle -v --match-dir=nava if: matrix.python-version == env.TEST_PYTHON_VERSION - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - fail_ci_if_error: false + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} if: matrix.python-version == env.TEST_PYTHON_VERSION diff --git a/.github/workflows/windows_test.yml b/.github/workflows/windows_test.yml index a12a0ee..0b12f09 100644 --- a/.github/workflows/windows_test.yml +++ b/.github/workflows/windows_test.yml @@ -59,7 +59,8 @@ jobs: python -m pydocstyle -v --match-dir=nava if: matrix.python-version == env.TEST_PYTHON_VERSION - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - fail_ci_if_error: false + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} if: matrix.python-version == env.TEST_PYTHON_VERSION