From d97dc6b56c84d2edca9cd83dd390411d88b7573d Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:04:01 +0900 Subject: [PATCH] chore(ci): setting concurrency (#524) --- .github/workflows/testing.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: