Skip to content

Commit

Permalink
ci: faster wheel builds (#3146)
Browse files Browse the repository at this point in the history
* ci: faster wheel builds

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* Update packaging-test.yml

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Jim Pivarski <jpivarski@users.noreply.github.com>
  • Loading branch information
henryiii and jpivarski committed Jun 25, 2024
1 parent 7ffb763 commit ae1ba10
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
workflow_dispatch:
# Use from other workflows
workflow_call:
pull_request:
paths:
- .github/workflows/build-wheels.yml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -91,10 +94,13 @@ jobs:
with:
submodules: true

- name: Python 3.11
- name: Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Setup uv
uses: yezz123/setup-uv@v4

- name: Prepare build files
run: pipx run nox -s prepare
Expand Down Expand Up @@ -138,10 +144,13 @@ jobs:
with:
submodules: true

- name: Python 3.10
- name: Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'

- name: Setup uv
uses: yezz123/setup-uv@v4

- name: Prepare build files
run: pipx run nox -s prepare
Expand Down Expand Up @@ -182,11 +191,14 @@ jobs:
with:
submodules: true

- name: Setup uv
uses: yezz123/setup-uv@v4

- name: Prepare build files
run: pipx run nox -s prepare

- name: Build distributions
run: pipx run build
run: pipx run build --installer uv

- name: Check metadata
run: pipx run twine check dist/*
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/packaging-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
with:
submodules: true

- name: Setup uv
uses: yezz123/setup-uv@v4

- name: Prepare build files
run: pipx run nox -s prepare

Expand Down
1 change: 1 addition & 0 deletions awkward-cpp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ include/awkward/kernels.h
src/awkward_cpp/_kernel_signatures.py

dist
.venv
1 change: 1 addition & 0 deletions cibuildwheel.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tool.cibuildwheel]
build-frontend = "build[uv]"
test-requires = ["pytest>=6", "."]
test-command = """
pytest {project}/tests \
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

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

nox.needs_version = ">=2024.3.2"
nox.options.default_venv_backend = "uv|virtualenv"
nox.options.sessions = ["lint", "tests"]


requirements_dev = [
"build",
"numpy",
Expand Down

0 comments on commit ae1ba10

Please sign in to comment.