Skip to content

Commit d24f3ca

Browse files
committed
ci: move test-rust-accel job to test.yml
1 parent c934e42 commit d24f3ca

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,43 @@ jobs:
4646
- name: Run linters
4747
run: |
4848
make check-linting
49+
50+
test-rust-accel:
51+
runs-on: ${{ matrix.os }}
52+
needs:
53+
- test
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
os: [ubuntu-latest, macos-latest, windows-latest]
58+
python-version: ["3.11"]
59+
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
64+
- name: Set up Python ${{ matrix.python-version }}
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version: ${{ matrix.python-version }}
68+
69+
- name: Install Rust
70+
uses: dtolnay/rust-toolchain@stable
71+
72+
- name: Install uv
73+
uses: astral-sh/setup-uv@v3
74+
75+
- name: Sync deps (locked)
76+
run: |
77+
uv sync --locked --all-groups --all-extras
78+
79+
- name: Build & install Rust extension (maturin develop)
80+
uses: PyO3/maturin-action@v1
81+
with:
82+
command: develop
83+
args: --release
84+
working-directory: rust-base32
85+
86+
- name: Sanity check (import extension)
87+
run: |
88+
uv run python -c "import typeid_base32; print('typeid_base32 OK')"

0 commit comments

Comments
 (0)