Skip to content

Commit 573c031

Browse files
chore(ci): [CG-10635] use cibuildwheel (#298)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 3d9b597 commit 573c031

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/actions/setup-backend/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,14 @@ runs:
2323
python-version: ${{ inputs.python-version }}
2424
version: '0.5.24'
2525
cache-suffix: ${{inputs.python-version}}
26+
2627
- name: Install dependencies
2728
shell: bash
2829
run: |
2930
uv sync --frozen --all-extras
31+
3032
- name: Install codecov
3133
shell: bash
3234
run: |
3335
uv tool install codecov-cli --python 3.10
3436
uv tool update-shell
35-
# - name: Configure AWS Credentials
36-
# if: env.skip == '1'
37-
# uses: aws-actions/configure-aws-credentials@v2
38-
# with:
39-
# aws-access-key-id: ${{ inputs.aws-access-key-id }}
40-
# aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
41-
# aws-region: us-west-1

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upload Python Package
1+
name: Release
22

33
on:
44
push:
@@ -19,6 +19,7 @@ jobs:
1919
name: Build wheels on ${{ matrix.os }}
2020
runs-on: ${{ matrix.os }}
2121
strategy:
22+
fail-fast: false
2223
matrix:
2324
os: [ubuntu-latest, macos-latest]
2425

@@ -44,10 +45,12 @@ jobs:
4445
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
4546
4647
# TODO: add cbuildwheel cache
47-
- name: Build release distributions
48-
run: uv build --wheel
48+
- name: Build wheels
49+
uses: pypa/[email protected]
4950
env:
5051
HATCH_BUILD_HOOKS_ENABLE: true
52+
CIBW_SKIP: '{cp313-macosx_*,*i686*,*musllinux*}'
53+
5154

5255
- uses: actions/upload-artifact@v4
5356
with:
@@ -76,7 +79,7 @@ jobs:
7679
run: |
7780
export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}"
7881
export UV_PUBLISH_USERNAME="__token__"
79-
uv publish --publish-url https://upload.pypi.org/legacy/ --keyring-provider disabled
82+
uv publish --publish-url https://upload.pypi.org/legacy/
8083
8184
- name: Make github release
8285
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)