Skip to content

Commit

Permalink
ci: separate CI test and coverage for exposing windows bug (#664)
Browse files Browse the repository at this point in the history
* chore: added poetry virtual env creation at config

* fix(ci.yaml): separate tests and coverage

* fix: run coverage before generating report

* fix(ci.yml): added missing | at sequencial command

---------

Co-authored-by: Gabriele Venturi <[email protected]>
  • Loading branch information
HenriqueAJNB and gventuri authored Oct 22, 2023
1 parent c66cb06 commit e005b74
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -25,7 +25,10 @@ jobs:
run: poetry install --all-extras
- name: Lint with ruff
run: poetry run ruff pandasai examples
- name: Run tests with coverage
- name: Run tests
run:
poetry run pytest
- name: Run code coverage
run: |
poetry run coverage run --source=pandasai -m pytest
poetry run coverage xml
Expand Down
3 changes: 2 additions & 1 deletion poetry.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[virtualenvs]
in-project = true
path = "."
path = "."
create = true

0 comments on commit e005b74

Please sign in to comment.