SilverElixir commited on
Commit
2e6f061
·
unverified ·
1 Parent(s): 85fce89

Add CI workflow for testing and dependency checks

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +28 -0
.github/workflows/ci.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+
13
+ - uses: actions/setup-python@v5
14
+ with:
15
+ python-version: "3.10"
16
+
17
+ - run: pip install -r requirements.txt -r requirements-dev.txt
18
+
19
+ # тот же самый гейт, что и раньше гонялся вручную (см. README) —
20
+ # без glob, явным списком файлов, чтобы ловить кросс-файловые проблемы
21
+ - run: pyflakes bot.py lumen_*.py system_prompt.py conftest.py test_*.py
22
+
23
+ - run: pytest -q
24
+
25
+ # проверка requirements.txt на известные CVE в зафиксированных версиях —
26
+ # requirements-dev.txt (pytest/pyflakes/pip-audit) не сканируем: это
27
+ # dev-инструменты, не попадающие в рантайм-образ (см. Dockerfile/.dockerignore)
28
+ - run: pip-audit -r requirements.txt