Skip to content

chore(ci): [CG-10635] use cibuildwheel #298

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

Merged
merged 8 commits into from
Feb 5, 2025
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
9 changes: 2 additions & 7 deletions .github/actions/setup-backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@ runs:
python-version: ${{ inputs.python-version }}
version: '0.5.24'
cache-suffix: ${{inputs.python-version}}

- name: Install dependencies
shell: bash
run: |
uv sync --frozen --all-extras

- name: Install codecov
shell: bash
run: |
uv tool install codecov-cli --python 3.10
uv tool update-shell
# - name: Configure AWS Credentials
# if: env.skip == '1'
# uses: aws-actions/configure-aws-credentials@v2
# with:
# aws-access-key-id: ${{ inputs.aws-access-key-id }}
# aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
# aws-region: us-west-1
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package
name: Release

on:
push:
Expand All @@ -19,6 +19,7 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

Expand All @@ -44,10 +45,12 @@ jobs:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*

# TODO: add cbuildwheel cache
- name: Build release distributions
run: uv build --wheel
- name: Build wheels
uses: pypa/[email protected]
env:
HATCH_BUILD_HOOKS_ENABLE: true
CIBW_SKIP: '{cp313-macosx_*,*i686*,*musllinux*}'


- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -76,7 +79,7 @@ jobs:
run: |
export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}"
export UV_PUBLISH_USERNAME="__token__"
uv publish --publish-url https://upload.pypi.org/legacy/ --keyring-provider disabled
uv publish --publish-url https://upload.pypi.org/legacy/

- name: Make github release
uses: softprops/action-gh-release@v2
Expand Down
Loading