From 97dc8f60fda8df26d10650d423a0458a10745122 Mon Sep 17 00:00:00 2001 From: peekxc Date: Wed, 17 Jul 2024 16:13:49 -0400 Subject: [PATCH] workflow update --- .github/workflows/wheels.yml | 10 ++-------- .gitignore | 1 + pyproject.toml | 4 ++++ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index adf8caf..458c2a3 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -60,9 +60,7 @@ jobs: CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }} # -Wl,-S equivalent to gcc's -Wl,--strip-debug LDFLAGS: "-Wl,-S" - CIBW_TEST_REQUIRES: pytest pytest-cov coverage - CIBW_TEST_COMMAND: coverage run --source={package} -m pytest {package}/tests && coverage report -m - + - uses: actions/upload-artifact@v3 with: name: wheels @@ -104,8 +102,6 @@ jobs: CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 CIBW_MANYLINUX_I686_IMAGE: manylinux1 CIBW_TEST_SKIP: "*-macosx_arm64" - CIBW_TEST_REQUIRES: pytest pytest-cov coverage - CIBW_TEST_COMMAND: coverage run --source={package} -m pytest {package}/tests && coverage report -m - uses: actions/upload-artifact@v3 with: @@ -147,9 +143,7 @@ jobs: CIBW_SKIP: "*-musllinux_*" CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }} CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }} - CIBW_TEST_REQUIRES: pytest pytest-cov coverage - CIBW_TEST_COMMAND: coverage run --source={package} -m pytest {package}/tests && coverage report -m - + - uses: actions/upload-artifact@v3 with: name: wheels diff --git a/.gitignore b/.gitignore index 80949ad..88441b6 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,4 @@ __pycache__ docs/build site/ +wheelhouse/simplextree-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl diff --git a/pyproject.toml b/pyproject.toml index f50c9ef..9c688d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,10 @@ dev = [ [tool.meson-python.args] setup = ['--default-library=static'] +[tool.cibuildwheel] +test-requires = ["pytest", "pytest-cov", "coverage"] +test-command = "coverage run --source={package} -m pytest {package}/tests" + [tool.black] line-length = 180 include = '\.pyi?$'