Skip to content

Commit

Permalink
fix: continue ci if test coverage upload fails
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed Oct 16, 2024
1 parent af222fc commit 0da9e8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,19 @@ jobs:
- name: Run tests
run: poetry run pytest tests --ignore=tests/integration_tests
- name: Run code coverage
continue-on-error: true
run: |
poetry run coverage run --source=pandasai -m pytest tests --ignore=tests/integration_tests
poetry run coverage xml
- name: Report coverage
continue-on-error: true
run: poetry run coverage report
- name: Upload coverage reports to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
continue-on-error: true
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ exports/
coverage.xml

# pgdata
pgdata/
pgdata/

# dataset
datasets/

0 comments on commit 0da9e8f

Please sign in to comment.