Skip to content

Commit

Permalink
dont fail ci for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Apr 22, 2024
1 parent 102549c commit a62d745
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,17 @@ jobs:
run: |
pytest -n 2 -v --cov={{ cookiecutter.package_name }} --cov-report=xml --color=yes {{ cookiecutter.package_name }}/tests/
# - name: codecov
# if: github.repository == '{{ cookiecutter.github_host_account }}/{{ cookiecutter.repo_name }}' && github.event_name != 'schedule'
# uses: codecov/codecov-action@v3
# with:
# file: coverage.xml
# name: codecov-{{ '${{ matrix.os }}' }}-py{{ '${{ matrix.python-version }}' }}
# verbose: True
- name: codecov
if: github.repository == '{{ cookiecutter.github_host_account }}/{{ cookiecutter.repo_name }}' && github.event_name != 'schedule'
uses: codecov/codecov-action@v3
with:
# codecov can be flaky and result in spurious failures
# the below option will not fail the CI if codecov fails
# change to true to fail the CI if codecov fails
fail_ci_if_error: false
file: coverage.xml
name: codecov-{{ '${{ matrix.os }}' }}-py{{ '${{ matrix.python-version }}' }}
verbose: True


pylint_check:
Expand Down

0 comments on commit a62d745

Please sign in to comment.