From b5f7a8eace73d0dad0062a3e538b6a039231099a Mon Sep 17 00:00:00 2001 From: Randy Lai Date: Wed, 17 Jan 2024 11:10:57 -0800 Subject: [PATCH] use concurrency --- .github/workflows/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 326c64a..81d7db7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,18 +6,14 @@ on: pull_request: branches: [main, master] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: RADIAN_NO_INPUTHOOK: 1 jobs: - cleanup: - name: Cancel Previous Runs - runs-on: ubuntu-latest - steps: - - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - pytest: name: ${{ matrix.os }} r-${{ matrix.r }} py-${{ matrix.python }} strategy: