-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
53 lines (48 loc) · 1.31 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
53
name: CI
# Gate de calidad: ruff (lint + formato), mypy strict y pytest sobre uv.
# Replica el gate local (pre-commit + pytest) en cada push a main y cada PR.
# Hito 0 cierra acá su pendiente "el gate corre en local; CI pendiente".
on:
push:
branches: [main, dev]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
python-version: "3.11"
- name: Sync (dev + extras)
run: uv sync --all-extras --dev
- name: Ruff check
run: uv run ruff check .
- name: Ruff format check
run: uv run ruff format --check .
- name: Mypy (strict, src)
run: uv run mypy src
test:
name: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Sync (dev + extras)
run: uv sync --all-extras --dev
- name: Pytest
run: uv run pytest -q