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