1
0
Fork 0
mirror of https://github.com/EDeev/yandex_lyceum.git synced 2026-10-07 20:49:29 +03:00

CI: проверка синтаксиса (ruff) и импорт обоих Flask-приложений

This commit is contained in:
Деев Егор Викторович 2026-10-02 21:18:33 +00:00
parent 968588eea1
commit e892a11052

22
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install ruff==0.14.0 -r requirements.txt
- name: Ruff (синтаксис и ошибки)
run: ruff check --select E9,F .
- name: Приложения импортируются
run: |
cd 01-flask-html && python -c "import server" && cd ..
cd 02-flask-wtf-forms && python -c "import server"