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

This commit is contained in:
Nova Cat 2025-01-19 12:06:30 -08:00
parent 8e05fe76dd
commit f2cba464c8

View file

@ -24,7 +24,7 @@ jobs:
if: always()
run: cat log.log
hypercorn:
name: Test server with Hypercorn
name: Test server with Hypercorn (ASGI)
runs-on: docker
steps:
- uses: actions/checkout@v4
@ -42,6 +42,26 @@ jobs:
- name: Kill server
if: always()
run: pkill hypercorn
- name: Show logs
if: always()
run: cat log.log
gunicorn:
name: Test server with Gunicorn (WSGI)
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask gunicorn pyOpenSSL
- name: Run server
run: gunicorn -w 2 -b 127.0.0.1:1234 'server:app' > log.log &
- name: Test server homepage
run: curl 127.0.0.1:1234
- name: Kill server
if: always()
run: pkill gunicorn
- name: Show logs
if: always()
run: cat log.log