From 4a8371cdd7bbd9c6fe8be0b9fde9509d13573373 Mon Sep 17 00:00:00 2001 From: Aleksandr Movchan Date: Fri, 27 Sep 2024 16:55:01 +0200 Subject: [PATCH] Update run_tests_with_gpu.yml to handle concurrent runs --- .github/workflows/run_tests_with_gpu.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests_with_gpu.yml b/.github/workflows/run_tests_with_gpu.yml index aaf103fd..b377292b 100644 --- a/.github/workflows/run_tests_with_gpu.yml +++ b/.github/workflows/run_tests_with_gpu.yml @@ -3,6 +3,10 @@ name: Run Tests with GPU on: workflow_dispatch: # Allows for manual triggering +concurrency: + group: run-tests-gpu # Fixed group name to ensure only one instance runs + cancel-in-progress: false + jobs: test: runs-on: ubuntu-latest @@ -30,4 +34,4 @@ jobs: - name: Run tests with GPU run: | - HF_TOKEN=${{ secrets.HF_TOKEN }} dstack apply -f tests.dstack.yml --force -y \ No newline at end of file + HF_TOKEN=${{ secrets.HF_TOKEN }} dstack apply -f tests.dstack.yml --force -y