From 0a8f1773623addbf92910ae155c788745fb41927 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 18 Jan 2025 18:59:02 -0800 Subject: [PATCH] Update .forgejo/workflows/test.yml --- .forgejo/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index f8c4c12..5709c25 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -8,7 +8,7 @@ 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 server.py & + run: python3 -u server.py > log.log & - name: Test server homepage run: curl localhost:2009 - name: Test server relay @@ -16,4 +16,8 @@ jobs: - name: Test server certificate generation run: wget http://localhost:2009/gencert.zip && unzip gencert.zip - name: Kill server - run: pkill python3 \ No newline at end of file + if: always() + run: pkill python3 + - name: Show logs + if: always() + run: cat log.log \ No newline at end of file