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
5 changed files with 17 additions and 1 deletions
+2 -1
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__)"
@@ -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:
+5
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:
+1
View File
@@ -12,6 +12,7 @@ permissions:
jobs:
coverage:
name: Nightly Coverage Report
runs-on: linux_x64
strategy: