Skip to content

Commit

Permalink
fix: only failures
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Dec 6, 2024
1 parent eef94fe commit 902e26a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 902e26a

Please sign in to comment.