Skip to content

Commit

Permalink
coverage only runs when meanful files are changed (duplicates code fr…
Browse files Browse the repository at this point in the history
…om `test.yml`). this removes the other `on:` commands because I couldn't figure out the right syntax.
  • Loading branch information
sbryngelson authored Jun 9, 2024
1 parent 4dd7f25 commit 14b8299
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -24,4 +36,4 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 14b8299

Please sign in to comment.