Skip to content

Commit

Permalink
Merge pull request #845 from microbiomedata/843-gha-does-not-run-auto…
Browse files Browse the repository at this point in the history
…mated-tests-when-example-changesheets-are-modified

Configure GHA to run tests when example changesheets change
  • Loading branch information
eecavanna authored Dec 17, 2024
2 parents dbed7e8 + 083a333 commit 3ae3d01
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

name: Python application

# Note: The following events will trigger this workflow:
# 1. Someone pushes a commit to `main` that includes changes to any of the listed files.
# 2. Someone opens a pull request that includes changes to any of the listed files.
# 3. Someone clicks the "Run workflow" button on the "Actions" tab on GitHub.
#
# References:
# - https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#example-including-paths
# - https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
#
on:
push:
branches: [ main ]
Expand All @@ -11,14 +20,17 @@ on:
- 'Makefile'
- '**.Dockerfile'
- '**.py'
- 'requirements/main.txt'
- 'requirements/main.txt'
# Every file in the `data` directory or in any of its subdirectories:
- 'metadata-translation/notebooks/data/**'
pull_request:
paths:
- '.github/workflows/python-app.yml'
- 'Makefile'
- '**.Dockerfile'
- '**.py'
- 'requirements/main.txt'
- 'metadata-translation/notebooks/data/**'
# Allow developers to trigger this workflow manually via the "Actions" page on GitHub.
# Reference: https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch: { }
Expand Down

0 comments on commit 3ae3d01

Please sign in to comment.