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:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
doc-build:
|
||||
|
1
.github/workflows/lint-actions.yaml
vendored
1
.github/workflows/lint-actions.yaml
vendored
@ -3,6 +3,7 @@ name: Python-Lint
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
types: [reopened, opened]
|
||||
|
||||
jobs:
|
||||
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:
|
||||
pull_request:
|
||||
types: [reopened, opened, synchronize]
|
||||
push:
|
||||
|
||||
jobs:
|
||||
@ -63,6 +64,7 @@ jobs:
|
||||
thresholdModified: 0.7
|
||||
|
||||
coverage_report:
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
@ -99,6 +101,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
steps:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -221,3 +221,4 @@ replay_pid*
|
||||
/lbr-audit.md
|
||||
/.ruff_cache/
|
||||
/Jupyter/test.ipynb
|
||||
/secrets*.json
|
||||
|
Reference in New Issue
Block a user