-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.06 KB
/
python-checks.yml
File metadata and controls
44 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Python Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Verify required files exist
run: |
for f in README.md requirements.txt core/system_health.py core/process_monitor.py core/service_checker.py; do
if [ ! -f "$f" ]; then
echo "MISSING required file: $f"
exit 1
fi
done
echo "All required files present."
- name: Lint with flake8
run: |
flake8 core/ scripts/ tests/ tools/ config/ --statistics
- name: Syntax check (compileall)
run: python -m compileall core/ scripts/ tests/ tools/ config/ -q
- name: Run tests
run: pytest tests/ -v