From 0da9e8fd92de4a2de1c520be81c5700ef6bcb478 Mon Sep 17 00:00:00 2001 From: Gabriele Venturi Date: Wed, 16 Oct 2024 10:29:12 +0200 Subject: [PATCH] fix: continue ci if test coverage upload fails --- .github/workflows/ci.yml | 5 ++++- .gitignore | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c1e51c65..627335de0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index aadc6b299..b31a6a6c9 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,7 @@ exports/ coverage.xml # pgdata -pgdata/ \ No newline at end of file +pgdata/ + +# dataset +datasets/