diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 09efe9a0..6016c8bd 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,6 +1,13 @@ name: Testing -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: pytest: