mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-21 21:33:55 +02:00
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:
1
.github/workflows/documentation.yaml
vendored
1
.github/workflows/documentation.yaml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
doc-build:
|
doc-build:
|
||||||
|
1
.github/workflows/lint-actions.yaml
vendored
1
.github/workflows/lint-actions.yaml
vendored
@ -3,6 +3,7 @@ name: Python-Lint
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [reopened, opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Black:
|
Black:
|
||||||
|
3
.github/workflows/test-and-build-action.yaml
vendored
3
.github/workflows/test-and-build-action.yaml
vendored
@ -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
1
.gitignore
vendored
@ -221,3 +221,4 @@ replay_pid*
|
|||||||
/lbr-audit.md
|
/lbr-audit.md
|
||||||
/.ruff_cache/
|
/.ruff_cache/
|
||||||
/Jupyter/test.ipynb
|
/Jupyter/test.ipynb
|
||||||
|
/secrets*.json
|
||||||
|
Reference in New Issue
Block a user