Skip to content

Commit 2f17cd5

Browse files
gnachmanclaude
andcommitted
Add Python API tests to CI
Runs pytest for the Python API library in parallel with the existing Xcode tests. Uses ubuntu-latest for faster execution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a1add46 commit 2f17cd5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,29 @@ on:
77
branches: [master]
88

99
jobs:
10-
test:
10+
python-api-tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.11'
21+
22+
- name: Install dependencies
23+
working-directory: api/library/python/iterm2
24+
run: |
25+
pip install -r requirements-dev.txt
26+
pip install -e .
27+
28+
- name: Run tests
29+
working-directory: api/library/python/iterm2
30+
run: python -m pytest tests/ -v
31+
32+
xcode-tests:
1133
runs-on: macos-15
1234

1335
steps:

0 commit comments

Comments
 (0)