From eb97e020dd69e6055a4b7e6574fa37af0d6c4746 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 3 Aug 2026 13:37:29 +0700 Subject: [PATCH] ci: add python syntax-check gate before Nix deploy --- .github/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 60d5667..fac6f9a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,18 @@ env: VPS_USER: ${{ secrets.VPS_USER }} jobs: + syntax-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Python syntax check + run: | + python3 -m py_compile run_server.py auto_merge_bot.py callback_server.py setup_app.py setup_all.py generate_manifest.py generate_manifest_domain.py start_server.py + build-and-deploy: + needs: syntax-check runs-on: ubuntu-latest steps: - name: Checkout