From ee51c6b599753ccc84259374cac217f5d7da3c2a Mon Sep 17 00:00:00 2001 From: Daniel Vega-Myhre Date: Tue, 21 Jan 2025 12:10:52 -0800 Subject: [PATCH 1/2] do not run float8 tests if only docs changed --- .github/workflows/float8_test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/float8_test.yml b/.github/workflows/float8_test.yml index 7c9e5a4b00..70ff837ddc 100644 --- a/.github/workflows/float8_test.yml +++ b/.github/workflows/float8_test.yml @@ -5,10 +5,16 @@ on: branches: - main - 'gh/**' + paths: + # do not run if only docs changed + - '!docs/**' pull_request: branches: - main - 'gh/**' + paths: + # do not run if only docs changed + - '!docs/**' concurrency: group: float8_test-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} From 986d7188032149a99eb7756a5c51f265495eb6df Mon Sep 17 00:00:00 2001 From: Daniel Vega-Myhre Date: Tue, 21 Jan 2025 12:18:56 -0800 Subject: [PATCH 2/2] fix syntax --- .github/workflows/float8_test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/float8_test.yml b/.github/workflows/float8_test.yml index 70ff837ddc..1d4af7bcd4 100644 --- a/.github/workflows/float8_test.yml +++ b/.github/workflows/float8_test.yml @@ -5,16 +5,16 @@ on: branches: - main - 'gh/**' - paths: + paths-ignore: # do not run if only docs changed - - '!docs/**' + - 'docs/**' pull_request: branches: - main - 'gh/**' - paths: + paths-ignore: # do not run if only docs changed - - '!docs/**' + - 'docs/**' concurrency: group: float8_test-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}