mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-03 13:49:35 +08:00
add memory
This commit is contained in:
parent
6117af13e9
commit
5a8ecc6a07
10
.github/workflows/develop.yml
vendored
10
.github/workflows/develop.yml
vendored
@ -113,8 +113,16 @@ jobs:
|
||||
-e ENVIRONMENT=dev \
|
||||
-e TESTING=0 \
|
||||
-p 8004:8765 \
|
||||
--memory="2g" \
|
||||
--memory-swap="3g" \
|
||||
${{ env.IMAGE }}:latest
|
||||
|
||||
- name: Increase swap space
|
||||
run: |
|
||||
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
|
||||
sudo mkswap /swapfile
|
||||
sudo swapon /swapfile
|
||||
- name: Monitor memory usage
|
||||
run: free -h
|
||||
- name: Pytest
|
||||
run: docker exec backend pipenv run python -m pytest tests --disable-warnings
|
||||
# - name: Flake8
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user