-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 861 Bytes
/
Copy pathpython-tests.yml
File metadata and controls
37 lines (31 loc) · 861 Bytes
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
name: Python — Lint + Tests
on:
pull_request:
paths:
- 'scripts/**'
- 'installer/**'
- 'pyproject.toml'
push:
branches: [main]
paths:
- 'scripts/**'
- 'installer/**'
- 'pyproject.toml'
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install ruff black mypy openpyxl
pip install -e ".[dev]" || true # tolerate missing dev extras
- name: Ruff lint
run: ruff check scripts/ || true # warning-only in v1.0; harden in v1.x
- name: Black format check
run: black --check scripts/ || true # warning-only in v1.0