Update .forgejo/workflows/test.yml
All checks were successful
Test web app / check (push) Successful in 41s

This commit is contained in:
Nova Cat 2025-01-18 22:13:44 -08:00
parent ce4dd889d4
commit 4149688554

View file

@ -9,13 +9,13 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask hypercorn pyOpenSSL run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask hypercorn pyOpenSSL
- name: Run server - name: Run server
run: python3 -u server.py > log.log & run: hypercorn --bind=127.0.0.1:1234 server:app > log.log &
- name: Test server homepage - name: Test server homepage
run: curl localhost:2009 run: curl localhost:1234
- name: Test server relay - name: Test server relay
run: curl localhost:2009/gem?gemini=gem.swee.codes run: curl localhost:1234/gem?gemini=gem.swee.codes
- name: Test server certificate generation - name: Test server certificate generation
run: wget http://localhost:2009/gencert.zip && unzip gencert.zip run: wget http://localhost:1234/gencert.zip && unzip gencert.zip
- name: Kill server - name: Kill server
if: always() if: always()
run: pkill python3 run: pkill python3