Skip to content

Commit ebf581e

Browse files
[Tests] Make sure that we don't run tests multiple times (huggingface#5949)
* [Tests] Make sure that we don't run tests mulitple times * [Tests] Make sure that we don't run tests mulitple times * [Tests] Make sure that we don't run tests mulitple times
1 parent e550163 commit ebf581e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/pr_test_fetcher.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Fast tests for PRs
1+
name: Fast tests for PRs - Test Fetcher
22

33
on:
44
pull_request:
@@ -14,6 +14,10 @@ env:
1414
MKL_NUM_THREADS: 4
1515
PYTEST_TIMEOUT: 60
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
setup_pr_tests:
1923
name: Setup PR Tests

.github/workflows/push_tests_fast.yml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
812
env:
913
DIFFUSERS_IS_CI: yes
1014
HF_HOME: /mnt/cache

.github/workflows/push_tests_mps.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ env:
1313
PYTEST_TIMEOUT: 600
1414
RUN_SLOW: no
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
run_fast_tests_apple_m1:
1822
name: Fast PyTorch MPS tests on MacOS

0 commit comments

Comments
 (0)