From 40173857cd3eaa4501cc78bb74f5f32a1cd9e632 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 19 Jan 2025 12:10:44 -0800 Subject: [PATCH] Update .forgejo/workflows/test.yml --- .forgejo/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 2366d04..bfff8d3 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -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