mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 00:03:15 +08:00
update
This commit is contained in:
parent
41e49d9b48
commit
c7848cc8ec
12
.github/workflows/develop.yml
vendored
12
.github/workflows/develop.yml
vendored
@ -116,12 +116,12 @@ jobs:
|
|||||||
${{ env.IMAGE }}:latest
|
${{ env.IMAGE }}:latest
|
||||||
- name: Monitor memory usage
|
- name: Monitor memory usage
|
||||||
run: free -h
|
run: free -h
|
||||||
- name: Run Pytest directly
|
# - name: Run Pytest directly
|
||||||
run: |
|
# run: |
|
||||||
# install python 3.11 and pip3
|
# # install python 3.11 and pip3
|
||||||
sudo apt-get update
|
# sudo apt-get update
|
||||||
sudo apt-get install -y python3.11 python3.11-distutils
|
# sudo apt-get install -y python3.11 python3.11-distutils
|
||||||
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && cd ./app/backend/ && pipenv install && pipenv run python -m pytest --disable-warnings
|
# pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && cd ./app/backend/ && pipenv install && pipenv run python -m pytest --disable-warnings
|
||||||
- name: Pytest
|
- name: Pytest
|
||||||
run: docker exec backend-backend pipenv run python -m pytest -v
|
run: docker exec backend-backend pipenv run python -m pytest -v
|
||||||
# - name: Flake8
|
# - name: Flake8
|
||||||
|
|||||||
@ -11,7 +11,7 @@ from api import ping, chatbot
|
|||||||
|
|
||||||
log = logging.getLogger("uvicorn")
|
log = logging.getLogger("uvicorn")
|
||||||
|
|
||||||
origins = ["http://localhost:3000"]
|
origins = ["http://localhost:8004"]
|
||||||
|
|
||||||
def create_application() -> FastAPI:
|
def create_application() -> FastAPI:
|
||||||
application = FastAPI()
|
application = FastAPI()
|
||||||
@ -32,5 +32,5 @@ app.add_middleware(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
|
# uvicorn.run("main:app", host="0.0.0.0", port=8765, reload=True)
|
||||||
Loading…
x
Reference in New Issue
Block a user