diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 63be4c1..71cc175 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,6 +1,10 @@ name: "Black" -on: [push] +on: + pull_request: + push: + branches: + - main jobs: black: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 3957827..d7e44cf 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -1,6 +1,10 @@ name: "Linters" -on: [push] +on: + pull_request: + push: + branches: + - main jobs: pylint: name: Python Code Quality and Lint diff --git a/.github/workflows/packaging_test.yml b/.github/workflows/packaging_test.yml index ac3a748..b5dd2f0 100644 --- a/.github/workflows/packaging_test.yml +++ b/.github/workflows/packaging_test.yml @@ -1,6 +1,10 @@ name: "Packaging Test" -on: [push] +on: + pull_request: + push: + branches: + - main jobs: coverage: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 197f9a1..a540740 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -1,6 +1,9 @@ name: "Unittests" - -on: [push] +on: + pull_request: + push: + branches: + - main jobs: pytest: runs-on: ${{ matrix.os }}