add db security verification and GenerationError for multi-table #13
This file contains hidden or 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: Test SQL Conversion | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - "examples/**" | |
| - "tests/**" | |
| - "tlsql/**" | |
| - "setup.py" | |
| - "requirements.txt" | |
| - ".github/workflows/test.yml" | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - "examples/**" | |
| - "tests/**" | |
| - "tlsql/**" | |
| - "setup.py" | |
| - "requirements.txt" | |
| jobs: | |
| test-sql-conversion: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Install dependencies from requirements.txt (pandas and scikit-learn) | |
| pip install -r requirements.txt | |
| - name: Install TLSQL package | |
| run: | | |
| pip install -e . | |
| - name: Run SQL Conversion Test | |
| working-directory: ./examples | |
| run: | | |
| python sql_conversion.py | |
| - name: Run Unit Tests | |
| working-directory: ./tests | |
| run: | | |
| python lexer_test.py | |
| python parser_test.py | |
| python test_predict_statements.py |