From 19345833446ab6e05c3fb9783b844f23f4e3fbf9 Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Thu, 12 Mar 2026 16:14:55 +0100 Subject: [PATCH] Add GitHub Actions workflow for linting and compile checks --- .gitea/workflows/check.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/check.yml diff --git a/.gitea/workflows/check.yml b/.gitea/workflows/check.yml new file mode 100644 index 0000000..938cfad --- /dev/null +++ b/.gitea/workflows/check.yml @@ -0,0 +1,26 @@ +name: Lint & Compile Check + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Check syntax (Compile check) + run: python -m py_compile monitor.py