From 7e571f516dbbbdf528f94d810f8bb10f7fe55dc7 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Fri, 2 Jan 2026 18:38:16 -0600 Subject: [PATCH] feat(ci): add backend compilation step to CI workflow and introduce compile task for Python syntax checking --- .gitea/workflows/ci.yml | 16 ++++++++++++++++ Taskfile.yml | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c33abde..62ab73e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -59,3 +59,19 @@ jobs: run: task build-frontend env: VITE_APP_VERSION: ${{ steps.version.outputs.version }} + + test-backend: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: https://git.quad4.io/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - name: Setup Python + uses: https://git.quad4.io/actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 + with: + python-version: "3.13" + - name: Setup Task + uses: https://git.quad4.io/actions/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1 + with: + version: "3.46.3" + - name: Compile backend + run: task compile diff --git a/Taskfile.yml b/Taskfile.yml index 8c7d985..da7c2a0 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -75,6 +75,11 @@ tasks: desc: Run all linters deps: [lint-frontend, lint-python] + compile: + desc: Compile Python code to check for syntax errors + cmds: + - "{{.PYTHON}} -m compileall meshchatx/" + install: desc: Install all dependencies (installs node modules and python deps) deps: [node_modules, python]