Skip to content

Fix test to use specific ValueError exception type #93

Fix test to use specific ValueError exception type

Fix test to use specific ValueError exception type #93

Workflow file for this run

name: samplerate
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Linux x86_64
- os: ubuntu-latest
arch: x86_64
cibw_archs: "x86_64"
# Linux ARM64 (native, no QEMU)
- os: ubuntu-24.04-arm
arch: aarch64
cibw_archs: "aarch64"
# Windows AMD64
- os: windows-latest
arch: AMD64
cibw_archs: "AMD64"
# macOS x86_64 (Intel)
- os: macos-15-intel
macoosx_deployment_target: "10.15"
arch: x86_64
cibw_archs: "x86_64"
# macOS ARM64 (Apple Silicon)
- os: macos-latest
macoosx_deployment_target: "11.0"
arch: arm64
cibw_archs: "arm64"
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: Build wheels
uses: pypa/cibuildwheel@v3.3.0
with:
extras: uv
- uses: actions/upload-artifact@v5
with:
name: cibw-wheels-${{ matrix.os }}-${{ matrix.arch }}
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Build sdist
run: uv build --sdist
- uses: actions/upload-artifact@v5
with:
name: cibw-sdist
path: dist/*.tar.gz
if-no-files-found: error
publish:
needs: [build_wheels, build_sdist]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-samplerate-ledfx/
permissions:
id-token: write # Required for trusted publishing
steps:
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Download all artifacts
uses: actions/download-artifact@v5
with:
path: dist
pattern: cibw-*
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R dist
- name: Publish to PyPI
run: uv publish --trusted-publishing always