mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-09 00:26:25 +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
|
run: pip install -r src/scripts/app/requirements.txt
|
||||||
- name: Run tests and collect coverage
|
- name: Run tests and collect coverage
|
||||||
run: pytest src/scripts/app/ --cov
|
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)
|
- name: Upload coverage to Codecov (script)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ runs:
|
|||||||
CC_YML_PATH: ${{ inputs.codecov_yml_path }}
|
CC_YML_PATH: ${{ inputs.codecov_yml_path }}
|
||||||
|
|
||||||
- name: Gracefully exit
|
- name: Gracefully exit
|
||||||
if: ${{ !cancelled() && inputs.fail_ci_if_error != 'true' }}
|
if: ${{ failure() && inputs.fail_ci_if_error != 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo -e "\033[0;32m==>\033[0m Exiting gracefully..."
|
echo -e "\033[0;32m==>\033[0m Exiting gracefully..."
|
||||||
|
|||||||
Reference in New Issue
Block a user