ci: add python compile workflow for main branch
Some checks failed
CI / lint-and-compile (push) Has been cancelled

This commit is contained in:
root
2026-04-17 09:44:56 +08:00
parent 8139a5e97b
commit db1eae6e74

30
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,30 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-and-compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Compile Python files
run: |
python -m py_compile app/*.py