-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.39 KB
/
Copy pathquality.yml
File metadata and controls
49 lines (38 loc) · 1.39 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
45
46
47
48
49
name: Quality
on:
pull_request:
push:
branches: [main, master]
jobs:
quality:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Cache pip packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install tooling
run: |
python -m pip install --upgrade pip
python -m pip install ruff==0.15.4 mypy==1.19.1 types-pyyaml==6.0.12 pytest==9.0.2 types-Deprecated==1.3.1.20260130 types-requests==2.32.4.20260324 types-ujson==5.10.0.20250822
- name: Show installed versions
run: |
python --version
pip list | grep -E "ruff|mypy|types-pyyaml|pytest|types-Deprecated|types-requests|types-ujson"
- name: Run ruff
run: ruff check . --config pyproject.toml
- name: Run mypy (non-strict, respects mypy.ini)
run: mypy ml pipelines ml_service
- name: Import layer guardrails
run: python scripts/quality/check_import_layers.py
- name: Check naming conventions
run: python scripts/quality/check_naming_conventions.py