Skip to content
Open
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
90 changes: 45 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: CI Pipeline

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test-server-startup:
environment: env
runs-on: ubuntu-latest
env:
PORT: 8000
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ZILLIZ_AUTH_TOKEN: ${{ secrets.ZILLIZ_AUTH_TOKEN }}
ZILLIZ_URL: ${{ secrets.ZILLIZ_URL }}
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_AI_SEARCH_ENDPOINT: ${{ secrets.AZURE_AI_SEARCH_ENDPOINT }}
AZURE_AI_SEARCH_API_KEY: ${{ secrets.AZURE_AI_SEARCH_API_KEY }}
AZURE_MONGO_CONNECTION_STRING: $ {{ secrets.AZURE_MONGO_CONNECTION_STRING }}
AZURE_SPEECH_ENDPOINT: $ {{ secrets.AZURE_SPEECH_ENDPOINT }}
AZURE_SPEECH_API_KEY: $ {{ secrets.AZURE_SPEECH_API_KEY }}
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.11.9
uses: actions/setup-python@v4
with:
python-version: '3.11.9'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Start server in the background
run: |
uvicorn app.main:app --host 0.0.0.0 --port $PORT &
sleep 15

- name: Check server health
run: curl -f http://127.0.0.1:$PORT || exit 1

- name: Kill server
run: pkill uvicorn
name: CI Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-server-startup:
environment: env
runs-on: ubuntu-latest
env:
PORT: 8000
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ZILLIZ_AUTH_TOKEN: ${{ secrets.ZILLIZ_AUTH_TOKEN }}
ZILLIZ_URL: ${{ secrets.ZILLIZ_URL }}
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_AI_SEARCH_ENDPOINT: ${{ secrets.AZURE_AI_SEARCH_ENDPOINT }}
AZURE_AI_SEARCH_API_KEY: ${{ secrets.AZURE_AI_SEARCH_API_KEY }}
AZURE_MONGO_CONNECTION_STRING: $ {{ secrets.AZURE_MONGO_CONNECTION_STRING }}
AZURE_SPEECH_ENDPOINT: $ {{ secrets.AZURE_SPEECH_ENDPOINT }}
AZURE_SPEECH_API_KEY: $ {{ secrets.AZURE_SPEECH_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11.9
uses: actions/setup-python@v4
with:
python-version: '3.11.9'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Start server in the background
run: |
uvicorn app.main:app --host 0.0.0.0 --port $PORT &
sleep 15
- name: Check server health
run: curl -f http://127.0.0.1:$PORT || exit 1
- name: Kill server
run: pkill uvicorn
288 changes: 144 additions & 144 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,144 +1,144 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env
.env.*

# virtualenv
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyderworkspace

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# VS Code settings
.vscode/

# Local environment variables
.env.local
.env.development.local
.env.test.local
.env.production.local

# macOS specific files
.DS_Store

# Windows specific files
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# Backup files
*.bak
*.swp
*.swo
*~
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# dotenv
.env
.env.*
# virtualenv
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyderworkspace
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# VS Code settings
.vscode/
# Local environment variables
.env.local
.env.development.local
.env.test.local
.env.production.local
# macOS specific files
.DS_Store
# Windows specific files
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
# Backup files
*.bak
*.swp
*.swo
*~
Loading