ci: harden pull request unit test workflow (#5902)

This commit is contained in:
InfinityPacer
2026-06-05 15:31:31 +08:00
committed by GitHub
parent e77bef7cf1
commit ca1dbdf843

View File

@@ -11,6 +11,13 @@ on:
# 允许手动触发
workflow_dispatch:
permissions:
contents: read
concurrency:
group: unit-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-latest