-
Notifications
You must be signed in to change notification settings - Fork 41
37 lines (29 loc) · 975 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (29 loc) · 975 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: CI
on: [pull_request, push]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Single source of truth: CI runs the exact same gate as
# `make validate` does locally, so the two can never drift.
- name: Build venv + install deps
run: make venv
- name: Lint (codespell + isort + black + flake8 + mypy)
run: make lint
# `make lint` applies formatting in place; in CI any change
# it makes is a failure (the author should have run it).
- name: Fail on lint-induced changes
run: git diff --exit-code
- name: Test (full unittest suite)
run: make test