From b2996a8580fc5e14cca477a05100bc62d7277ba9 Mon Sep 17 00:00:00 2001 From: Debasish Pal <48341250+debpal@users.noreply.github.com> Date: Wed, 11 Sep 2024 13:28:12 +0300 Subject: [PATCH] update gihub action files for specific triggers only --- .github/workflows/linting.yml | 10 ++++++++-- .github/workflows/testing.yml | 14 ++++++++++++-- .github/workflows/typing.yml | 10 ++++++++-- README.md | 3 +++ 4 files changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 3e8a362..8227d51 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6a9e32e..5bdc714 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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: diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index b722ac9..8cde7c9 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -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: diff --git a/README.md b/README.md index 2579fa7..bb02d06 100644 --- a/README.md +++ b/README.md @@ -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)|