chore: add ruff checks

This commit is contained in:
chengma
2026-07-07 15:11:40 +08:00
parent 862f791fde
commit 6e2347e1c8
13 changed files with 81 additions and 16 deletions
+8 -2
View File
@@ -20,15 +20,21 @@ jobs:
with:
python-version: "3.11"
cache: pip
cache-dependency-path: requirements.txt
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Ruff lint
run: python -m ruff check app tests main.py
- name: Syntax check
run: python -m compileall app main.py
- name: Unit and GUI tests
run: python -m unittest discover -s tests
run: python -m unittest discover -s tests