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
2 changes: 0 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: PR Tests

on:
pull_request:
push:
branches: [main]

jobs:
lint:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ jobs:
test:
uses: ./.github/workflows/test.yml

docs:
uses: ./.github/workflows/docs.yml

build-wheels:
name: Build wheels (${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs:
- test
- docs
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -62,7 +58,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- test
- docs
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/test-rust-accel.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,43 @@ jobs:
- name: Run linters
run: |
make check-linting

test-rust-accel:
runs-on: ${{ matrix.os }}
needs:
- test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Sync deps (locked)
run: |
uv sync --locked --all-groups --all-extras

- name: Build & install Rust extension (maturin develop)
uses: PyO3/maturin-action@v1
with:
command: develop
args: --release
working-directory: rust-base32

- name: Sanity check (import extension)
run: |
uv run python -c "import typeid_base32; print('typeid_base32 OK')"