mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-21 19:02:45 -05:00
* slack_search.py * rem * fix: get elements * feat: better stack message processing * fix: mypy * fix: url parsing * refactor: federated search * feat: proper chunking + source filters * highlighting + source check * feat: forced section insertion * feat: multi slack api queries * slack query expansion * feat: max slack queries env * limit slack search to avoid overloading the search * Initial draft * more * simpify * Improve modal * Fix oauth flow * Fully working versino * More nicities * Improved cascade delete * document set for fed connector UI * Fix source filters + improve document set selection * Improve callback modal * fix: logging error + showing connectors in admin page user settings * better log * Fix mypy * small rei comment * Fix pydantic * Improvements to modals * feat: distributed pruning * random fix * greptile * Encrypt token * respect source filters + revert llm pruning ordering * greptile nit * feat: thread as context in slack search * feat: slack doc ordering * small improvements * rebase * Small improvements * Fix web build * try fix build * Move to seaprate model file * Use default_factory * remove unused model --------- Co-authored-by: Rei Meguro <36625832+Orbital-Web@users.noreply.github.com>
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
name: Python Checks
|
|
|
|
on:
|
|
merge_group:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'release/**'
|
|
|
|
jobs:
|
|
mypy-check:
|
|
# See https://runs-on.com/runners/linux/
|
|
runs-on: [runs-on,runner=8cpu-linux-x64,"run-id=${{ github.run_id }}"]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
cache: 'pip'
|
|
cache-dependency-path: |
|
|
backend/requirements/default.txt
|
|
backend/requirements/dev.txt
|
|
backend/requirements/model_server.txt
|
|
- run: |
|
|
python -m pip install --upgrade pip
|
|
pip install --retries 5 --timeout 30 -r backend/requirements/default.txt
|
|
pip install --retries 5 --timeout 30 -r backend/requirements/dev.txt
|
|
pip install --retries 5 --timeout 30 -r backend/requirements/model_server.txt
|
|
|
|
- name: Generate OpenAPI schema
|
|
working-directory: ./backend
|
|
env:
|
|
PYTHONPATH: "."
|
|
run: |
|
|
python scripts/onyx_openapi_schema.py --filename generated/openapi.json
|
|
|
|
- name: Generate OpenAPI Python client
|
|
working-directory: ./backend
|
|
run: |
|
|
docker run --rm \
|
|
-v "${{ github.workspace }}/backend/generated:/local" \
|
|
openapitools/openapi-generator-cli generate \
|
|
-i /local/openapi.json \
|
|
-g python \
|
|
-o /local/onyx_openapi_client \
|
|
--package-name onyx_openapi_client \
|
|
|
|
- name: Run MyPy
|
|
run: |
|
|
cd backend
|
|
mypy .
|
|
|
|
- name: Check import order with reorder-python-imports
|
|
run: |
|
|
cd backend
|
|
find ./onyx -name "*.py" | xargs reorder-python-imports --py311-plus
|
|
|
|
- name: Check code formatting with Black
|
|
run: |
|
|
cd backend
|
|
black --check .
|