Repository navigation
57 lines (51 loc) · 1.88 KB
/
Copy pathci.yml
File metadata and controls
57 lines (51 loc) · 1.88 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
54
55
56
57
name: CI
# Wires the make targets the ROADMAP referenced: `make lint-ci` (ruff) and
# `make test-ci` (the hermetic test subset, no model downloads). Each job
# installs the package + dev extras into the runner's Python and overrides the
# Makefile's PY so it uses that interpreter (the default PY points at a local
# homebrew path).
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install package + dev deps
run: python -m pip install -e '.[dev]'
- name: Ruff (matches `make lint-ci`)
run: make lint-ci
# Tests run on macOS only for now. Wiring CI surfaced 13 pre-existing tests
# that are coupled to the macOS environment (launchd plists, the install
# summary's launchd wording, a systemd user session the Linux runner lacks,
# and pty/TTY-dependent triage) and have never run on Linux. Making them
# Linux-portable is tracked as a follow-up (see ROADMAP); until then a
# Linux job would be red on issues unrelated to a given change. macOS is the
# project's primary platform (launchd is the default scheduler).
test:
name: test (${{ matrix.os }} / py${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
python-version: ['3.11', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package + dev deps
run: python -m pip install -e '.[dev]'
- name: Hermetic test subset (matches `make test-ci`)
run: make test-ci PY=python