From ee5dcf0d422afa333aaf2400950265aec691a400 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Wed, 4 Jan 2023 12:48:10 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20CI:=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A7=A6=E5=8F=91=E6=9D=A1=E4=BB=B6=E5=87=8F=E5=B0=91?= =?UTF-8?q?=E6=97=A0=E6=95=88=E8=BF=90=E8=A1=8C=20(#1545)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/codecov.yml | 4 ++++ .github/workflows/publish-bot.yml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 46e1ce12..f54fed13 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -5,6 +5,10 @@ on: branches: - master pull_request: + paths: + - "nonebot/**" + - "packages/**" + - "tests/**" jobs: test: diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index dc67dd0c..5807808c 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -8,10 +8,15 @@ on: issue_comment: types: [created] +concurrency: + group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }} + cancel-in-progress: true + jobs: plugin_test: runs-on: ubuntu-latest name: nonebot2 plugin test + if: github.event_name != 'issue_comment' || !github.event.issue.pull_request permissions: issues: read outputs: @@ -19,6 +24,7 @@ jobs: output: ${{ steps.plugin-test.outputs.OUTPUT }} steps: - name: Install Poetry + if: ${{ !startsWith(github.event_name, 'pull_request') }} run: pipx install poetry - name: Setup Python uses: actions/setup-python@v4