-
Notifications
You must be signed in to change notification settings - Fork 10
79 lines (69 loc) · 1.91 KB
/
ci.yaml
File metadata and controls
79 lines (69 loc) · 1.91 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
name: Continuous Integration
permissions: read-all
on:
pull_request:
branches:
- main
- devs/**
jobs:
linters:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/setup-python@v6.1.0
with:
python-version: 3.14
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version-file: requirements-uv.txt
- name: Linters
shell: bash
run: uv run --locked poe linters
test:
timeout-minutes: 5
strategy:
matrix:
os: [ubuntu-24.04, windows-2025, macos-15]
python: [3.13, 3.14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6.0.1
- uses: actions/setup-python@v6.1.0
with:
python-version: ${{ matrix.python }}
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version-file: requirements-uv.txt
- name: Tests
shell: bash
env:
_MERGIFY_TEST_NEW_FLAKY_DETECTION: "true"
PYTHONUTF8: "${{ matrix.os == 'windows-2025' && 1 || 0 }}"
run: uv run --locked poe test
- name: Build
shell: bash
run: uv build
- name: Tests build
shell: bash
env:
PYTHONUTF8: "${{ matrix.os == 'windows-2025' && 1 || 0 }}"
run: |
pip install dist/*.whl
# We check the installed wheel produces a working binary, specially on Windows
# to ensure the utf8 mode is enabled.
python -c "import test_binary_build; test_binary_build.test_reexec_enables_utf8_and_prints_emoji();"
ci-gate:
if: ${{ !cancelled() }}
needs:
- test
- linters
runs-on: ubuntu-latest
steps:
- name: Verify all jobs succeeded
uses: Mergifyio/gha-mergify-ci@v11
with:
action: wait-jobs
jobs: ${{ toJSON(needs) }}