-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (56 loc) · 1.56 KB
/
test.yml
File metadata and controls
66 lines (56 loc) · 1.56 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: Reusable Test
on:
workflow_call:
inputs:
component:
required: true
type: string
jobs:
test-backend:
runs-on: windows-latest
if: |
inputs.component == 'backend' &&
(
matrix.python-version == '3.14' ||
(matrix.python-version == '3.15' && github.event_name == 'push' && github.ref == 'refs/heads/main')
)
strategy:
fail-fast: true
max-parallel: 1
matrix:
python-version: ["3.14", "3.15"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test,gui]
- name: Run All Python Tests
run: |
pytest tests/ -v --tb=short
env:
PYTHONPATH: ${{ github.workspace }}/src
CI: true
GITHUB_ACTIONS: true
test-cli-core:
runs-on: windows-latest
if: inputs.component == 'cli'
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install Core (No GUI)
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run CLI Dynamic Tests
run: |
pytest tests/test_cli_dynamic.py tests/test_cli_core.py -v
env:
PYTHONPATH: ${{ github.workspace }}/src