mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 08:13:20 +08:00
run on host directly
This commit is contained in:
parent
1b7f9cebdc
commit
d2b85fb428
7
.github/workflows/develop.yml
vendored
7
.github/workflows/develop.yml
vendored
@ -114,12 +114,15 @@ jobs:
|
|||||||
-e TESTING=0 \
|
-e TESTING=0 \
|
||||||
-p 8004:8765 \
|
-p 8004:8765 \
|
||||||
--memory="4g" \
|
--memory="4g" \
|
||||||
--memory-swap="5g" \
|
--memory-swap="8g" \
|
||||||
${{ env.IMAGE }}:latest
|
${{ env.IMAGE }}:latest
|
||||||
- name: Monitor memory usage
|
- name: Monitor memory usage
|
||||||
run: free -h
|
run: free -h
|
||||||
|
- name: Run Pytest directly
|
||||||
|
run: |
|
||||||
|
cd ./app/backend/ && pipenv install && pipenv run python -m pytest --disable-warnings
|
||||||
- name: Pytest
|
- name: Pytest
|
||||||
run: docker exec backend pipenv run python -m pytest tests --disable-warnings
|
run: docker exec backend pipenv run python -m pytest -v
|
||||||
# - name: Flake8
|
# - name: Flake8
|
||||||
# run: docker exec backend pipenv run python -m flake8 .
|
# run: docker exec backend pipenv run python -m flake8 .
|
||||||
# - name: Black
|
# - name: Black
|
||||||
|
|||||||
@ -77,6 +77,8 @@ RUN chown -R app:app $APP_HOME
|
|||||||
# change to the app user
|
# change to the app user
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
|
# pytest
|
||||||
|
RUN pipenv run pytest --disable-warnings -v
|
||||||
|
|
||||||
# run gunicorn
|
# run gunicorn
|
||||||
CMD pipenv run gunicorn --bind 0.0.0.0:$PORT backend.main:app -k uvicorn.workers.UvicornWorker
|
CMD pipenv run gunicorn --bind 0.0.0.0:$PORT backend.main:app -k uvicorn.workers.UvicornWorker
|
||||||
Loading…
x
Reference in New Issue
Block a user