mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
fix: only failures
This commit is contained in:
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user