Reduced the execution of tests and lint actions on pull requests (#143)

This change will change the pipline to limit duplicat execution of tests
and lint actions in pull requests to save computing time.
This commit is contained in:
2023-09-23 09:22:14 +02:00
committed by GitHub
parent 495cd90d85
commit 286636dfa4
4 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ on:
branches: branches:
- main - main
pull_request: pull_request:
types: [opened, reopened, synchronize]
jobs: jobs:
doc-build: doc-build:

View File

@ -3,6 +3,7 @@ name: Python-Lint
on: on:
push: push:
pull_request: pull_request:
types: [reopened, opened]
jobs: jobs:
Black: Black:

View File

@ -2,6 +2,7 @@ name: Test & Build
on: on:
pull_request: pull_request:
types: [reopened, opened, synchronize]
push: push:
jobs: jobs:
@ -63,6 +64,7 @@ jobs:
thresholdModified: 0.7 thresholdModified: 0.7
coverage_report: coverage_report:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test needs: test
steps: steps:
@ -99,6 +101,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test needs: test
if: ${{ github.event_name == 'push' }}
steps: steps:
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4

1
.gitignore vendored
View File

@ -221,3 +221,4 @@ replay_pid*
/lbr-audit.md /lbr-audit.md
/.ruff_cache/ /.ruff_cache/
/Jupyter/test.ipynb /Jupyter/test.ipynb
/secrets*.json