Update .forgejo/workflows/test.yml
This commit is contained in:
parent
8e05fe76dd
commit
f2cba464c8
1 changed files with 21 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue