Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: faster wheel builds #3146

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading