From 25cb236957f5e9682c5a5e9e580f04660a517115 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Mon, 16 Sep 2024 14:43:54 -0700 Subject: [PATCH] CI: specify concurrency in actions --- .github/workflows/test.yml | 4 ++++ .github/workflows/wheels.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67327b1c..1200e586 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,10 @@ on: permissions: contents: read # to fetch code +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 85c73462..2ea9b464 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -15,6 +15,10 @@ on: types: - published +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build_wheels: name: Build wheels on ${{ matrix.os }}