@@ -67,11 +67,11 @@ jobs:
67
67
68
68
- name : Install dependencies
69
69
run : |
70
- uv pip install --system ".[test]"
70
+ uv sync
71
71
72
72
- name : Generate a sample project
73
73
run : |
74
- python -m test.test_projects test.test_0_basic.basic_project sample_proj
74
+ uv run -m test.test_projects test.test_0_basic.basic_project sample_proj
75
75
76
76
- name : Run a sample build (GitHub Action)
77
77
uses : ./
@@ -124,7 +124,7 @@ jobs:
124
124
125
125
- name : Test cibuildwheel
126
126
run : |
127
- python ./ bin/run_tests.py --run-podman
127
+ uv run bin/run_tests.py --run-podman
128
128
129
129
emulated-archs :
130
130
name : Get qemu emulated architectures
@@ -137,12 +137,13 @@ jobs:
137
137
- uses : actions/setup-python@v5
138
138
with :
139
139
python-version : " 3.x"
140
+ - uses : astral-sh/setup-uv@v3
140
141
- name : Install dependencies
141
- run : python -m pip install ".[test]"
142
+ run : uv sync
142
143
- name : Get qemu emulated architectures
143
144
id : archs
144
145
run : |
145
- OUTPUT=$(python -c "from json import dumps; from test.utils import EMULATED_ARCHS; print(dumps(EMULATED_ARCHS))")
146
+ OUTPUT=$(.venv/bin/ python -c "from json import dumps; from test.utils import EMULATED_ARCHS; print(dumps(EMULATED_ARCHS))")
146
147
echo "${OUTPUT}"
147
148
echo "archs=${OUTPUT}" >> "$GITHUB_OUTPUT"
148
149
@@ -159,14 +160,15 @@ jobs:
159
160
- uses : actions/setup-python@v5
160
161
with :
161
162
python-version : " 3.x"
163
+ - uses : astral-sh/setup-uv@v3
162
164
- name : Install dependencies
163
- run : python -m pip install ".[test,uv]"
165
+ run : uv sync
164
166
165
167
- name : Set up QEMU
166
168
uses : docker/setup-qemu-action@v3
167
169
168
170
- name : Run the emulation tests
169
- run : pytest --run-emulation ${{ matrix.arch }} test/test_emulation.py
171
+ run : uv run pytest --run-emulation ${{ matrix.arch }} test/test_emulation.py
170
172
171
173
test-pyodide :
172
174
name : Test cibuildwheel building pyodide wheels
@@ -179,14 +181,14 @@ jobs:
179
181
name : Install Python 3.12
180
182
with :
181
183
python-version : ' 3.12'
184
+ - uses : astral-sh/setup-uv@v3
182
185
183
186
- name : Install dependencies
184
- run : |
185
- python -m pip install ".[test]"
187
+ run : uv sync
186
188
187
189
- name : Generate a sample project
188
190
run : |
189
- python -m test.test_projects test.test_0_basic.basic_project sample_proj
191
+ uv run -m test.test_projects test.test_0_basic.basic_project sample_proj
190
192
191
193
- name : Run a sample build (GitHub Action)
192
194
uses : ./
@@ -198,6 +200,6 @@ jobs:
198
200
199
201
- name : Run tests with 'CIBW_PLATFORM' set to 'pyodide'
200
202
run : |
201
- python ./bin/run_tests.py
203
+ uv run ./bin/run_tests.py
202
204
env :
203
205
CIBW_PLATFORM : pyodide
0 commit comments