From 0c55454ff5b688e7dd7246478eea280be2571d2f Mon Sep 17 00:00:00 2001 From: Lucca Bertoncini Date: Tue, 27 Jan 2026 11:02:45 -0800 Subject: [PATCH 1/3] Only run benchmarks when engine code changes --- .github/workflows/benchmark.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8dd83b3..cd27b0f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -3,6 +3,13 @@ name: Stockfish Benchmark on: pull_request: branches: [ master ] + paths: + # Only run benchmarks when engine code changes + - 'moonfish/**' + - 'lichess/**' + - 'opening_book/**' + - 'pyproject.toml' + - 'requirements.txt' permissions: contents: read From 6c452f9b82e29a1a07c3ea94496315657fddf44a Mon Sep 17 00:00:00 2001 From: Lucca Bertoncini Date: Tue, 27 Jan 2026 11:06:09 -0800 Subject: [PATCH 2/3] Remove lichess from path filter (not engine code) --- .github/workflows/benchmark.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index cd27b0f..c902db9 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -6,7 +6,6 @@ on: paths: # Only run benchmarks when engine code changes - 'moonfish/**' - - 'lichess/**' - 'opening_book/**' - 'pyproject.toml' - 'requirements.txt' From 357f0c7524172ad63b3e43803522c4286a76c5c2 Mon Sep 17 00:00:00 2001 From: Lucca Bertoncini Date: Tue, 27 Jan 2026 11:14:06 -0800 Subject: [PATCH 3/3] Run benchmarks on PRs to any branch, not just master --- .github/workflows/benchmark.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c902db9..79315b6 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -2,7 +2,6 @@ name: Stockfish Benchmark on: pull_request: - branches: [ master ] paths: # Only run benchmarks when engine code changes - 'moonfish/**'