4
4
push :
5
5
tags :
6
6
- v*
7
+ env :
8
+ UV_SYSTEM_PYTHON : 1
7
9
jobs :
8
10
macos :
9
11
runs-on : macos-12
12
14
python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
13
15
steps :
14
16
- uses : actions/checkout@v3
15
- - uses : actions/setup-python@v4
17
+ - name : Install uv
18
+ uses : astral-sh/setup-uv@v3
19
+ - uses : actions/setup-python@v5
16
20
with :
17
21
python-version : ${{ matrix.python-version }}
18
22
- uses : dtolnay/rust-toolchain@stable
@@ -25,15 +29,15 @@ jobs:
25
29
args : -i python --release --out dist
26
30
- name : Install build wheel - x86_64
27
31
run : |
28
- pip install --force-reinstall dist/robyn*.whl
32
+ uv pip install --force-reinstall dist/robyn*.whl
29
33
cd ~ && python -c 'import robyn'
30
34
- name : Build wheels - universal2
31
35
uses : PyO3/maturin-action@v1
32
36
with :
33
37
args : -i python --release --universal2 --out dist
34
38
- name : Install build wheel - universal2
35
39
run : |
36
- pip install --force-reinstall dist/robyn*_universal2.whl
40
+ uv pip install --force-reinstall dist/robyn*_universal2.whl
37
41
cd ~ && python -c 'import robyn'
38
42
- name : Upload wheels
39
43
uses : actions/upload-artifact@v3
48
52
target : [x64, x86]
49
53
steps :
50
54
- uses : actions/checkout@v3
51
- - uses : actions/setup-python@v4
55
+ - name : Install uv
56
+ uses : astral-sh/setup-uv@v3
57
+ - uses : actions/setup-python@v5
52
58
with :
53
59
python-version : ${{ matrix.python-version }}
54
60
architecture : ${{ matrix.target }}
61
67
- name : Install build wheel
62
68
shell : bash
63
69
run : |
64
- pip install --force-reinstall dist/robyn*.whl
70
+ uv pip install --force-reinstall dist/robyn*.whl
65
71
cd ~ && python -c 'import robyn'
66
72
- name : Upload wheels
67
73
uses : actions/upload-artifact@v3
77
83
steps :
78
84
- uses : actions/checkout@v3
79
85
- uses : dtolnay/rust-toolchain@stable
80
- - uses : actions/setup-python@v4
86
+ - name : Install uv
87
+ uses : astral-sh/setup-uv@v3
88
+ - uses : actions/setup-python@v5
81
89
with :
82
90
python-version : ${{ matrix.python-version }}
83
91
- name : Build Wheels
89
97
- name : Install build wheel
90
98
if : matrix.target == 'x86_64'
91
99
run : |
92
- pip install --force-reinstall dist/robyn*.whl
100
+ uv pip install --force-reinstall dist/robyn*.whl
93
101
cd ~ && python -c 'import robyn'
94
102
- name : Upload wheels
95
103
uses : actions/upload-artifact@v3
@@ -158,13 +166,15 @@ jobs:
158
166
- uses : actions/download-artifact@v3
159
167
with :
160
168
name : wheels
161
- - uses : actions/setup-python@v4
169
+ - name : Install uv
170
+ uses : astral-sh/setup-uv@v3
171
+ - uses : actions/setup-python@v5
162
172
with :
163
173
python-version : 3.x
164
174
- name : Publish to PyPi
165
175
env :
166
176
TWINE_USERNAME : __token__
167
177
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
168
178
run : |
169
- pip install --upgrade twine
179
+ uv pip install --upgrade twine
170
180
twine upload --skip-existing *
0 commit comments