Update .forgejo/workflows/test.yml
This commit is contained in:
parent
f2cba464c8
commit
40173857cd
1 changed files with 6 additions and 4 deletions
|
@ -16,7 +16,7 @@ jobs:
|
|||
- name: Test server relay
|
||||
run: curl 127.0.0.1:2009/gem?gemini=gem.swee.codes
|
||||
- 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
|
||||
if: always()
|
||||
run: pkill python3
|
||||
|
@ -54,11 +54,13 @@ jobs:
|
|||
- 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 &
|
||||
run: gunicorn -w 4 -b 127.0.0.1:1234 'server:app' > log.log &
|
||||
- name: Test server homepage
|
||||
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
|
||||
if: always()
|
||||
run: pkill gunicorn
|
||||
|
|
Loading…
Add table
Reference in a new issue