-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.12 KB
/
Copy pathcli.yml
File metadata and controls
52 lines (42 loc) · 1.12 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
50
51
52
name: cli
on:
push:
branches: [main]
paths:
- "cli/**"
- ".github/workflows/cli.yml"
pull_request:
paths:
- "cli/**"
- ".github/workflows/cli.yml"
# Cancel in-progress runs on the same PR when a new push arrives — saves runner minutes.
concurrency:
group: cli-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12", "3.14"]
defaults:
run:
working-directory: cli
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: cli/pyproject.toml
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Ruff (lint + import order)
run: ruff check src tests
- name: Mypy (type check)
run: mypy src
- name: Pytest (unit tests)
run: pytest