diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index fbee1ec..95c1001 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -9,13 +9,13 @@ jobs: - name: Install dependencies run: apt update && apt install python3-pip curl wget -y && pip install --break-system-packages flask hypercorn pyOpenSSL - 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 - run: curl localhost:2009 + run: curl localhost:1234 - 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 - run: wget http://localhost:2009/gencert.zip && unzip gencert.zip + run: wget http://localhost:1234/gencert.zip && unzip gencert.zip - name: Kill server if: always() run: pkill python3