mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 21:23:56 +01:00
Compare commits
2 commits
bc94d7fb2f
...
9a130049b3
Author | SHA1 | Date | |
---|---|---|---|
9a130049b3 | |||
d3aba962cc |
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
|
@ -1 +1,32 @@
|
|||
|
||||
name: Python Tests
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Start API server
|
||||
run: |
|
||||
python run
|
||||
|
||||
- name: Wait for API server to start
|
||||
run: sleep 10 # We can adjust this sleep duration as needed. idk how long the server takes to start
|
||||
|
||||
- name: Run tests
|
||||
run: python tests
|
||||
|
|
18
requirements.txt
Normal file
18
requirements.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
aiohttp==3.8.5
|
||||
aiohttp_socks==0.8.0
|
||||
dhooks==1.1.4
|
||||
fastapi==0.101.0
|
||||
httpx==0.24.1
|
||||
motor==3.2.0
|
||||
openai==0.27.8
|
||||
providers==0.0.2
|
||||
pydantic==2.1.1
|
||||
pymongo==4.4.1
|
||||
python-dotenv==1.0.0
|
||||
python_socks==2.3.0
|
||||
pytz==2023.3
|
||||
PyYAML==6.0.1
|
||||
rich==13.5.2
|
||||
setuptools==49.2.1
|
||||
starlette==0.31.0
|
||||
tiktoken==0.4.0
|
Loading…
Reference in a new issue