mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-01 12:23:01 +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 \
|
||||
-p 8004:8765 \
|
||||
--memory="4g" \
|
||||
--memory-swap="5g" \
|
||||
--memory-swap="8g" \
|
||||
${{ env.IMAGE }}:latest
|
||||
- name: Monitor memory usage
|
||||
run: free -h
|
||||
- name: Run Pytest directly
|
||||
run: |
|
||||
cd ./app/backend/ && pipenv install && pipenv run python -m pytest --disable-warnings
|
||||
- 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
|
||||
# run: docker exec backend pipenv run python -m flake8 .
|
||||
# - name: Black
|
||||
|
||||
@ -77,6 +77,8 @@ RUN chown -R app:app $APP_HOME
|
||||
# change to the app user
|
||||
USER app
|
||||
|
||||
# pytest
|
||||
RUN pipenv run pytest --disable-warnings -v
|
||||
|
||||
# run gunicorn
|
||||
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