feat/execute_sql_query_usage creating error prompt if execute_sql_que… #1252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
run: pip install poetry==1.4.2 | |
- name: Install dependencies | |
run: poetry install --all-extras | |
- name: Lint with ruff | |
run: | | |
poetry run ruff pandasai examples | |
poetry run ruff format pandasai examples --diff | |
- name: Spellcheck | |
run: poetry run codespell pandasai docs examples tests | |
- name: Run tests | |
run: poetry run pytest tests | |
- name: Run code coverage | |
run: | | |
poetry run coverage run --source=pandasai -m pytest tests | |
poetry run coverage xml | |
- name: Report coverage | |
run: poetry run coverage report | |
- name: Upload coverage reports to Codecov | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
fail_ci_if_error: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |