Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: select_ai_py_tests
on: push

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
python-version: ['3.11', '3.12', '3.13', '3.14']

steps:
- name: Check out python-select-ai repository code
uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Replace dot in python version with empty space
run: |
python_version=${{matrix.python-version}}
new_version="${python_version//./}"
echo "PYTHON_VERSION_WITHOUT_DOT=${new_version}" >> $GITHUB_ENV

- name: Install select_ai with core dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install pytest anyio
pip install -e .

- name: Run select_ai tests
run: |
python_version=${{matrix.python-version}}
pytest tests/create_schema.py
pytest -vv
env:
PYSAI_TEST_USER: ${{ secrets.PYSAI_TEST_USER }}_${{env.PYTHON_VERSION_WITHOUT_DOT}}
PYSAI_TEST_USER_PASSWORD: ${{ secrets.PYSAI_TEST_USER_PASSWORD }}
PYSAI_TEST_ADMIN_USER: ${{ secrets.PYSAI_TEST_ADMIN_USER }}
PYSAI_TEST_ADMIN_PASSWORD: ${{ secrets.PYSAI_TEST_ADMIN_PASSWORD }}
PYSAI_TEST_CONNECT_STRING: ${{ secrets.PYSAI_TEST_CONNECT_STRING }}
PYSAI_TEST_OCI_USER_OCID: ${{ secrets.PYSAI_TEST_OCI_USER_OCID }}
PYSAI_TEST_OCI_TENANCY_OCID: ${{ secrets.PYSAI_TEST_OCI_TENANCY_OCID }}
PYSAI_TEST_OCI_PRIVATE_KEY: ${{ secrets.PYSAI_TEST_OCI_PRIVATE_KEY }}
PYSAI_TEST_OCI_FINGERPRINT: ${{ secrets.PYSAI_TEST_OCI_FINGERPRINT }}
PYSAI_TEST_OCI_COMPARTMENT_ID: ${{ secrets.PYSAI_TEST_OCI_COMPARTMENT_ID }}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ doc/drawio
**/__pycache__
test.env
test_19c.env
pytest.env
.venv3.10/
.venv3.11/
.venv3.9/
sample_connect.py
async_pipeline_test.py
parquet.py
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=600']
args: ['--maxkb=2000']
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx
sphinx-rtd-theme
sphinx_toolbox
pydata_sphinx_theme
6 changes: 5 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_rtd_theme"
html_theme = "python_docs_theme"
html_static_path = ["_static"]

pygments_style = "sphinx"

latex_elements = {
"maxlistdepth": "10", # Increase the maximum list nesting depth
}
10 changes: 10 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,13 @@ Synthetic Data
:maxdepth: 3

user_guide/synthetic_data.rst


Select AI Agents
================

.. toctree::
:numbered:
:maxdepth: 3

user_guide/agent.rst
9 changes: 9 additions & 0 deletions doc/source/user_guide/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ Following list of actions can be performed using ``select_ai``
* - showsql
- ``select_ai.Action.SHOWSQL``
- Displays the generated SQL statement without executing it.
* - summarize
- ``select_ai.Action.SUMMARIZE``
- Generate summary of your large texts
* - feedback
- ``select_ai.Action.FEEDBACK``
- Provide feedback to improve accuracy of the generated SQL
* - translate
- ``select_ai.Action.TRANSLATE``
- Translate text from one language to another
Loading