-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (55 loc) · 1.48 KB
/
Copy pathci.yml
File metadata and controls
71 lines (55 loc) · 1.48 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
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
env:
PY_COLORS: "1"
jobs:
ci:
name: Tests on Python ${{ matrix.python-version }}
runs-on: windows-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync
- name: Run type checks
run: uv run poe typecheck
- name: Run core tests
run: uv run pytest tests/core
- name: Run wx integration tests
run: uv run pytest tests/wx_integration --cov-append
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v7
with:
name: coverage-report-py${{ matrix.python-version }}
path: htmlcov/
create_wheel_and_sdist:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: '3.13'
- name: Build wheel and sdist
run: uv build
- name: Upload wheel and sdist as artifact
uses: actions/upload-artifact@v7
with:
name: Package-Distributions-construct-editor
path: dist/