Skip to content

Commit 90d96c3

Browse files
authored
Merge pull request #63 from akhundMurad/fix/ci-cd
ci: remove docs from publish.yml
2 parents 29e48de + 356c381 commit 90d96c3

File tree

4 files changed

+40
-52
lines changed

4 files changed

+40
-52
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: PR Tests
22

33
on:
44
pull_request:
5-
push:
6-
branches: [main]
75

86
jobs:
97
lint:

.github/workflows/publish.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ jobs:
1212
test:
1313
uses: ./.github/workflows/test.yml
1414

15-
docs:
16-
uses: ./.github/workflows/docs.yml
17-
1815
build-wheels:
1916
name: Build wheels (${{ matrix.os }})
2017
runs-on: ${{ matrix.os }}
2118
needs:
2219
- test
23-
- docs
2420
strategy:
2521
fail-fast: false
2622
matrix:
@@ -62,7 +58,6 @@ jobs:
6258
runs-on: ubuntu-latest
6359
needs:
6460
- test
65-
- docs
6661
steps:
6762
- name: Checkout
6863
uses: actions/checkout@v4

.github/workflows/test-rust-accel.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.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)