diff --git a/.github/workflows/asv-pr.yml b/.github/workflows/asv-pr.yml index 6572287..31deac5 100644 --- a/.github/workflows/asv-pr.yml +++ b/.github/workflows/asv-pr.yml @@ -4,11 +4,13 @@ name: Run ASV benchmarks for PR -# Run after pre-commit hooks is completed on: - workflow_run: - workflows: [Run pre-commit hooks] - types: [completed] + pull_request: + branches: [ main ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: PYTHON_VERSION: "3.10" diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index b75769d..0eba6b6 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -2,13 +2,15 @@ name: Build documentation -on: workflow_dispatch +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] -# on: -# push: -# branches: [ main ] -# pull_request: -# branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index adb10a3..c63e2b9 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -3,13 +3,15 @@ name: Lint -on: workflow_dispatch +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] -# on: -# push: -# branches: [ main ] -# pull_request: -# branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/pre-commit-ci.yml b/.github/workflows/pre-commit-ci.yml index e9912f5..f516a2c 100644 --- a/.github/workflows/pre-commit-ci.yml +++ b/.github/workflows/pre-commit-ci.yml @@ -5,7 +5,6 @@ name: Run pre-commit hooks on: pull_request: - branches: [ main ] jobs: pre-commit-ci: diff --git a/.github/workflows/testing-and-coverage.yml b/.github/workflows/testing-and-coverage.yml index c908708..4398daf 100644 --- a/.github/workflows/testing-and-coverage.yml +++ b/.github/workflows/testing-and-coverage.yml @@ -3,13 +3,15 @@ name: Unit test and code coverage -on: workflow_dispatch +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] -# on: -# push: -# branches: [ main ] -# pull_request: -# branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: