diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index 2ef3ef13..7b664de4 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -1,5 +1,11 @@ name: lint-code -on: [push] +on: [push, pull_request] + +# Cancel if a newer run is started +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: # Use ruff to check for code style violations ruff-check: