mirror of
https://github.com/snowy-yang/qqbotsdk.git
synced 2026-10-21 10:08:50 +00:00
ci: 加并发取消与构建 job,新增 tag 触发的 PyPI 发布工作流(Trusted Publishing)
This commit is contained in:
1 parent
0515c6e4c0
commit
652a142e86
2 files changed
+56
No files matched your search
@@ -6,6 +6,10 @@ on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: ruff + pyright + pytest
|
||||
@@ -37,3 +41,24 @@ jobs:
|
||||
|
||||
- name: pytest 单元测试
|
||||
run: uv run pytest
|
||||
|
||||
build:
|
||||
name: 构建发行包
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 安装 uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
|
||||
- name: 构建 sdist 与 wheel
|
||||
run: uv build
|
||||
|
||||
- name: 上传构建产物
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
Reference in new issue
Block a user