From 902e26a66eae474ff89494dc50eb02463d00e572 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 5 Dec 2024 22:32:17 -0300 Subject: [PATCH] fix: only failures --- .github/workflows/main.yml | 9 --------- action.yml | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05e4af7..11029e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,15 +19,6 @@ jobs: run: pip install -r src/scripts/app/requirements.txt - name: Run tests and collect coverage run: pytest src/scripts/app/ --cov - - name: Upload coverage to Codecov (script) - uses: ./ - with: - fail_ci_if_error: true - files: ./coverage/script/coverage-final.json - flags: script-${{ matrix.os }} - name: codecov-script - verbose: true - token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage to Codecov (script) uses: ./ with: diff --git a/action.yml b/action.yml index 901704e..969c30f 100644 --- a/action.yml +++ b/action.yml @@ -266,7 +266,7 @@ runs: CC_YML_PATH: ${{ inputs.codecov_yml_path }} - name: Gracefully exit - if: ${{ !cancelled() && inputs.fail_ci_if_error != 'true' }} + if: ${{ failure() && inputs.fail_ci_if_error != 'true' }} shell: bash run: | echo -e "\033[0;32m==>\033[0m Exiting gracefully..."