add memory

This commit is contained in:
leehk 2025-04-13 14:17:34 +08:00
parent 6117af13e9
commit 5a8ecc6a07

View File

@ -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