Skip to content
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
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ on:
branches: [ main ]
tags:
- "v*"
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
test:
name: Run Tests
if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'fix/build-')
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -37,6 +40,7 @@ jobs:
build_wheels:
name: Build wheels (${{ matrix.os }})
needs: test
if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'fix/build-')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -51,6 +55,12 @@ jobs:
with:
python-version: "3.12"

- name: Set up QEMU (for aarch64 wheels)
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Changelog = "https://github.com/chainscore/tsrkit-types/blob/main/CHANGELOG.md"
requires = ["setuptools>=65.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = { find = { include = ["tsrkit_types*"], exclude = ["wheelhouse*"] } }

[tool.ruff]
line-length = 100
target-version = "py311"
Expand Down
Loading