Skip to content

Commit

Permalink
update gihub action files for specific triggers only
Browse files Browse the repository at this point in the history
  • Loading branch information
debpal committed Sep 11, 2024
1 parent e4b2ea2 commit b2996a8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: flake8

on:
push:
branches: [ "master" ]
branches:
- master # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files
pull_request:
branches: [ "master" ]
branches:
- master # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files

jobs:
build:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@ name: pytest

on:
push:
branches: [ "master" ]
branches:
- master # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files
paths-ignore:
- 'docs/conf.py' # Ignore changes to this specific file
pull_request:
branches: [ "master" ]
branches:
- master # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files
paths-ignore:
- 'docs/conf.py' # Ignore changes to this specific file

jobs:
build:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: mypy

on:
push:
branches: [ "master" ]
branches:
- master # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files
pull_request:
branches: [ "master" ]
branches:
- master # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ For detailed information, see the [documentation](https://bharatfintrack.readthe
| Staus | ![PyPI - Status](https://img.shields.io/pypi/status/BharatFinTrack) |
| License | ![PyPI - License](https://img.shields.io/pypi/l/BharatFinTrack) |
| Documemt | [![Documentation Status](https://readthedocs.org/projects/bharatfintrack/badge/?version=latest)](https://bharatfintrack.readthedocs.io/en/latest/?badge=latest) |
| GitHub | [![flake8](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml)
[![mypy](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml)
[![pytest](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml)|

0 comments on commit b2996a8

Please sign in to comment.