-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (76 loc) · 1.88 KB
/
Copy pathpython.yml
File metadata and controls
89 lines (76 loc) · 1.88 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
80
81
82
83
84
85
86
87
88
89
name: Python CI
on:
push:
branches: main
pull_request:
branches: main
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Install Dependencies
run: |
pip install cmake
pip install build
pip install pytest
- name: Build
run: |
python .\build_mininn.py --target windows --generator vs2022 --compiler cl --wheel
- name: Test
run: |
pip install (Get-ChildItem python\dist\mininn-*.whl)
pytest python
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Install Dependencies
run: |
pip install cmake
pip install build
pip install auditwheel
pip install patchelf
pip install pytest
- name: Build
run: |
python ./build_mininn.py --target linux --generator ninja --compiler clang --wheel
auditwheel repair python/dist/mininn-*.whl
- name: Test
run: |
pip install wheelhouse/mininn-*.whl
pytest python
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Install Dependencies
run: |
pip install cmake
pip install build
pip install pytest
- name: Build
run: |
python ./build_mininn.py --target mac --generator ninja --compiler clang --wheel
- name: Test
run: |
pip install python/dist/mininn-*.whl
pytest python