From d80949c2ecdc09ebeabcb60881e1160d330d9632 Mon Sep 17 00:00:00 2001 From: Josh Davies Date: Thu, 27 Aug 2026 17:25:34 +0100 Subject: [PATCH] ci: only run the full test suite if FORM source code or tests change The full test suite takes a long time to run, particularly under valgrind. Only run it if FORM's source code, the tests, or the yml file controlling the tests are modified. Other changes (just to the documentation, for eg) will only run the fast "deploy" tests. --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 65ad6218..26035b7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,18 @@ name: Test on: push: + # Only run the (slow) full tests if FORM source code, tests or this file change. + # The "deploy" workflow still compiles FORM and runs basic `make check` unconditionally. + paths: + - "sources/**" + - "check/**" + - ".github/workflows/test.yml" pull_request: + paths: + - "sources/**" + - "check/**" + - ".github/workflows/test.yml" + # Manually triggered CI runs will still run the full set of tests. workflow_dispatch: env: