Skip to content

Commit

Permalink
limit python build runs to push/pr against python code (#20)
Browse files Browse the repository at this point in the history
* limit python build runs to push/pr against python code

* add test changes to triggering events in python-app.yml

* limit markdown lint runs to when md files change

* include markdown lint workflow itself as part of the trigger
  • Loading branch information
ahouseholder authored Oct 27, 2023
1 parent 7e8fb79 commit 6282a3b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/lint_md_changes.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: "Lint Markdown (Changes)"
on: [push, pull_request]
on:
push:
paths:
- '**/*.md'
- .github/workflows/lint_md_changes.yml
pull_request:
paths:
- '**/*.md'
- .github/workflows/lint_md_changes.yml

jobs:
lint:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ name: Python application
on:
push:
branches: [ "main" ]
paths:
- vultron/**
- test/**
- pyproject.toml
- .github/workflows/python-app.yml
pull_request:
branches: [ "main" ]
paths:
- vultron/**
- test/**
- pyproject.toml
- .github/workflows/python-app.yml

permissions:
contents: read
Expand Down

0 comments on commit 6282a3b

Please sign in to comment.