Skip to content

Commit ae1ba10

Browse files
henryiiijpivarski
andauthored
ci: faster wheel builds (#3146)
* ci: faster wheel builds Signed-off-by: Henry Schreiner <[email protected]> * Update packaging-test.yml --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: Jim Pivarski <[email protected]>
1 parent 7ffb763 commit ae1ba10

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

.github/workflows/build-wheels.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
workflow_dispatch:
99
# Use from other workflows
1010
workflow_call:
11+
pull_request:
12+
paths:
13+
- .github/workflows/build-wheels.yml
1114

1215
concurrency:
1316
group: ${{ github.workflow }}-${{ github.ref }}
@@ -91,10 +94,13 @@ jobs:
9194
with:
9295
submodules: true
9396

94-
- name: Python 3.11
97+
- name: Python 3.12
9598
uses: actions/setup-python@v5
9699
with:
97-
python-version: '3.11'
100+
python-version: '3.12'
101+
102+
- name: Setup uv
103+
uses: yezz123/setup-uv@v4
98104

99105
- name: Prepare build files
100106
run: pipx run nox -s prepare
@@ -138,10 +144,13 @@ jobs:
138144
with:
139145
submodules: true
140146

141-
- name: Python 3.10
147+
- name: Python 3.12
142148
uses: actions/setup-python@v5
143149
with:
144-
python-version: '3.10'
150+
python-version: '3.12'
151+
152+
- name: Setup uv
153+
uses: yezz123/setup-uv@v4
145154

146155
- name: Prepare build files
147156
run: pipx run nox -s prepare
@@ -182,11 +191,14 @@ jobs:
182191
with:
183192
submodules: true
184193

194+
- name: Setup uv
195+
uses: yezz123/setup-uv@v4
196+
185197
- name: Prepare build files
186198
run: pipx run nox -s prepare
187199

188200
- name: Build distributions
189-
run: pipx run build
201+
run: pipx run build --installer uv
190202

191203
- name: Check metadata
192204
run: pipx run twine check dist/*

.github/workflows/packaging-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
with:
6363
submodules: true
6464

65+
- name: Setup uv
66+
uses: yezz123/setup-uv@v4
67+
6568
- name: Prepare build files
6669
run: pipx run nox -s prepare
6770

awkward-cpp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ include/awkward/kernels.h
88
src/awkward_cpp/_kernel_signatures.py
99

1010
dist
11+
.venv

cibuildwheel.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tool.cibuildwheel]
2+
build-frontend = "build[uv]"
23
test-requires = ["pytest>=6", "."]
34
test-command = """
45
pytest {project}/tests \

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
ALL_PYTHONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313

14+
nox.needs_version = ">=2024.3.2"
15+
nox.options.default_venv_backend = "uv|virtualenv"
1416
nox.options.sessions = ["lint", "tests"]
1517

16-
1718
requirements_dev = [
1819
"build",
1920
"numpy",

0 commit comments

Comments
 (0)