chore(ci): modify setuptools cm for test pypi and support cancel in progress (#21)

* feat: set local_scheme with no-local-version

* fix: pre-install numpy for test pypi install zvec

* fix: add guess-next-dev

* feat: support cancel ci when has new pr

* feat: add job name

* feat: add job name for ci and fix concurrency group
This commit is contained in:
Cuiys 2026-01-09 17:48:38 +08:00 committed by GitHub
parent 195841029c
commit 6d11623a96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 1 deletions

View File

@ -8,7 +8,7 @@ permissions:
jobs:
build_wheels:
name: Build wheels on self-hosted manylinux_2_28
name: Build wheels on self-hosted manylinux_2_28 for TestPyPi
runs-on: linux_x64
steps:
@ -49,6 +49,7 @@ jobs:
source test_env/bin/activate
pip install --upgrade pip
# Install from TestPyPI (must allow pre-releases if version has dev/alpha)
pip install numpy
pip install --index-url https://test.pypi.org/simple/ zvec
# Run a simple smoke test
python -c "import zvec; print('Import OK:', zvec.__version__)"

View File

@ -7,11 +7,16 @@ on:
branches: [ "main" ]
workflow_dispatch:
concurrency:
group: pr-${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Zvec LinuxX64 CI
runs-on: linux_x64
strategy:

View File

@ -7,11 +7,16 @@ on:
branches: [ "main" ]
workflow_dispatch:
concurrency:
group: pr-${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Zvec MacArm64 CI
runs-on: mac_m1_arm
steps:

View File

@ -12,6 +12,7 @@ permissions:
jobs:
coverage:
name: Nightly Coverage Report
runs-on: linux_x64
strategy:

View File

@ -117,6 +117,10 @@ sdist.include = [
BUILD_TOOLS = "OFF"
BUILD_PYTHON_BINDINGS = "ON"
# Setuptools config for test pypi
[tool.setuptools_scm]
local_scheme = "no-local-version"
version_scheme = "guess-next-dev"
######################################################################################################
# TESTING & QUALITY
######################################################################################################