From e78e56cab69b011f8bdeb2b8b716f300e970bfe1 Mon Sep 17 00:00:00 2001 From: Sepand Haghighi Date: Thu, 21 Nov 2024 03:19:43 +0330 Subject: [PATCH] Codecov (#25) * fix : codecov version updated * fix : codecov upload section updated * fix : minor edit in test.yml --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ca6f51..9c23db8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: run: | python -m pip install --upgrade pip pip install . - - name: Test requirements Installation + - name: Test requirements installation run: | python otherfiles/requirements-splitter.py pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt @@ -35,9 +35,10 @@ jobs: run: | python -m pytest . --cov=opr --cov-report=term - 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 && matrix.os == env.TEST_OS - name: Vulture, Bandit and Pydocstyle tests run: |