Skip to content

Commit 1664665

Browse files
committed
CI: verify validity of python package metadata
1 parent 08d3fcc commit 1664665

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,11 @@ jobs:
391391
command: build
392392
args: --release --strip --features pybindings -i python3.9 python3.10 python3.11 python3.12 python3.13 python3.14
393393

394-
- name: List wheels
394+
- name: List wheels and verify metadata
395395
shell: bash
396-
run: ls -l ./target/wheels/
396+
run: |
397+
ls -l target/wheels/
398+
poetry run twine check target/wheels/*.whl
397399
398400
- name: Save artifact with wheels for ${{ matrix.os }}
399401
uses: actions/upload-artifact@v4

.github/workflows/test.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,16 @@ jobs:
192192
${{ runner.os }}-pybindings-rust-${{ steps.install-rust.outputs.cachekey }}-
193193
194194
- name: Build Python package
195-
run: poetry run maturin develop --release --features pybindings
195+
run: poetry run maturin build --release --features pybindings
196+
197+
- name: List wheel and verify metadata
198+
shell: bash
199+
run: |
200+
ls -l target/wheels/
201+
poetry run twine check target/wheels/*.whl
202+
203+
- name: Install Python package
204+
run: poetry run pip install --force-reinstall target/wheels/*.whl
196205

197206
- name: pytest with numpy version 1.x
198207
if: matrix.python-version != '3.13' && matrix.python-version != '3.14'

0 commit comments

Comments
 (0)