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:
parent
968588eea1
commit
e892a11052
1 changed files with 22 additions and 0 deletions
22
.github/workflows/ci.yml
vendored
Normal file
22
.github/workflows/ci.yml
vendored
Normal 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"
|
||||||
Loading…
Add table
Reference in a new issue