Skip to content

Commit

Permalink
use cibuildwheel to do test
Browse files Browse the repository at this point in the history
Lexseal committed Jan 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a1a15ce commit 447195d
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ on:
tags: ['v*']

jobs:
build-and-test:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: "true"
- name: Build wheels
- name: Build wheels and test
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.pyver }}-*
@@ -26,7 +26,3 @@ jobs:
with:
name: wheels-${{ matrix.os }}-${{ matrix.pyver }}-${{ strategy.job-index }}
path: wheelhouse/*
- name: Test
run: |
python -m pip install --user wheelhouse/*.whl
python -m unittest discover -v -s mplib/tests
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -136,6 +136,10 @@ skip = ["*-musllinux_*", "pp*"]
build-frontend = "build"
manylinux-x86_64-image = "kolinguo/mplib-build:latest"
container-engine = { name = "docker", create-args = ["--rm"]}
# only run tests on python3.10
test-requires = ["trimesh", "transforms3d"]
test-command = "cd {project} && python3.10 -m unittest discover -s {project}/tests"
test-skip = ["cp37-*", "cp38-*", "cp39-*", "cp311-*", "cp312-*"]

[tool.cibuildwheel.linux]
archs = ["x86_64"]

0 comments on commit 447195d

Please sign in to comment.