Update .forgejo/workflows/test.yml
All checks were successful
Test web app / Test server with Flask Dev Mode (push) Successful in 36s
Test web app / Test server with Hypercorn (ASGI) (push) Successful in 37s
Test web app / Test server with Gunicorn (WSGI) (push) Successful in 39s

This commit is contained in:
Nova Cat 2025-01-19 12:10:44 -08:00
parent f2cba464c8
commit 40173857cd

View file

@ -16,7 +16,7 @@ jobs:
- name: Test server relay - name: Test server relay
run: curl 127.0.0.1:2009/gem?gemini=gem.swee.codes run: curl 127.0.0.1:2009/gem?gemini=gem.swee.codes
- name: Test server certificate generation - name: Test server certificate generation
run: wget 127.0.0.1:2009/gencert.zip && unzip gencert.zip run: wget http://127.0.0.1:2009/gencert.zip && unzip gencert.zip
- name: Kill server - name: Kill server
if: always() if: always()
run: pkill python3 run: pkill python3
@ -54,11 +54,13 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask gunicorn pyOpenSSL run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask gunicorn pyOpenSSL
- name: Run server - name: Run server
run: gunicorn -w 2 -b 127.0.0.1:1234 'server:app' > log.log & run: gunicorn -w 4 -b 127.0.0.1:1234 'server:app' > log.log &
- name: Test server homepage - name: Test server homepage
run: curl 127.0.0.1:1234 run: curl 127.0.0.1:1234
- name: Test server relay
run: curl 127.0.0.1:1234/gem?gemini=gem.swee.codes
- name: Test server certificate generation
run: wget http://127.0.0.1:1234/gencert.zip && unzip gencert.zip
- name: Kill server - name: Kill server
if: always() if: always()
run: pkill gunicorn run: pkill gunicorn