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