Skip to content

Commit

Permalink
Only run when non-test PyGMT source files and benchmarks.yml is modified
Browse files Browse the repository at this point in the history
Trigger the benchmark run when files in `pygmt/clib`, `pygmt/datasets`, `pygmt/helpers`, `pygmt/src` and `pygmt/*.py` are modified (i.e. except `pygmt/tests/**`), and also when .github/workflows/benchmarks.yml is modified.
  • Loading branch information
weiji14 committed Dec 25, 2023
1 parent 0a254f8 commit dedfa7a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ on:
# Run on pushes to the main branch
push:
branches: [ main ]
# Uncomment the 'pull_request' line below to trigger the workflow in PR
paths:
- 'pygmt/**/*.py'
- '!pygmt/tests/**'
- '.github/workflows/benchmarks.yml'
pull_request:
paths:
- 'pygmt/**/*.py'
- '!pygmt/tests/**'
- '.github/workflows/benchmarks.yml'
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
Expand Down

0 comments on commit dedfa7a

Please sign in to comment.