-
Notifications
You must be signed in to change notification settings - Fork 7
85 lines (70 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
85 lines (70 loc) · 1.99 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Tests (${{ matrix.os }} / py${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest customtkinter
- name: Run deterministic test suite
# live tests are excluded by the pytest config in pyproject.toml
run: python -m pytest -q
lint:
name: Lint and build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: pip
- name: Install tooling
run: |
python -m pip install --upgrade pip
pip install ruff build
- name: Ruff (errors only)
run: ruff check src/sage --select E9,F63,F7,F82
- name: Byte-compile all sources
run: python -m compileall -q src/sage
- name: Build package
run: python -m build
- name: Verify release versions
run: python scripts/check_release_versions.py
npm-launcher:
name: npm wrapper-only launcher
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm
cache-dependency-path: js/package-lock.json
- name: Install, test, and build thin launcher
working-directory: js
run: |
npm ci
npm test
npm run build
npm pack --dry-run