-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (61 loc) · 2.18 KB
/
Copy pathci.yml
File metadata and controls
66 lines (61 loc) · 2.18 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint and types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip -e ".[dev]"
- run: python -m ruff check .
- run: python -m ruff format --check .
- run: python -m mypy
test:
name: Test ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Windows is where this runs in anger, and it is also the only place
# the message-pump tests execute at all -- they skip elsewhere. Linux
# is kept in the matrix because every platform difference found so far
# was found by running on more than one: a dead port is refused on
# macOS and silently times out on Windows, which turned a stale
# handshake into a 90-second hang before anyone noticed.
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.10", "3.12", "3.13"]
exclude:
- os: macos-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.10"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip -e ".[dev]"
- run: python -m pytest --cov=originlab_mcp --cov-report=term-missing --cov-fail-under=85
windows-message-pump:
name: Message pump (Windows only)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip -e ".[dev]"
# Called out separately so a silent skip cannot be mistaken for a pass.
# These are the tests that decide whether Origin's window keeps
# repainting while the bridge holds its UI thread.
- run: python -m pytest tests/test_serving.py -v -k windows