From 14b8299d6548b1abde14adb507211e81509b3400 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Sun, 9 Jun 2024 13:22:41 -0400 Subject: [PATCH] coverage only runs when meanful files are changed (duplicates code from `test.yml`). this removes the other `on:` commands because I couldn't figure out the right syntax. --- .github/workflows/coverage.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9d80fac80d..61f4b8ac75 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,18 @@ name: Coverage Check -on: [push, pull_request, workflow_dispatch] +on: + pull_request: + paths: + - '**.f90' + - '**.fpp' + - '**.py' + - '**.yml' + - 'mfc.sh' + - 'golden.txt' + - 'golden-metadata.txt' + - 'CMakeLists.txt' + - 'requirements.txt' + jobs: run: @@ -24,4 +36,4 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }}