Fixed: CI Runs on Ready PRs Only (#2324)
* Revert "Update tests to not run all the time (#2311)"
This reverts commit 2c03eee329
.
* Make CI only runs on PRs that are ready
* Remove CI Tasks on Push
This commit is contained in:
parent
19f6544923
commit
cf3c205fa5
3
.github/workflows/codeql-analysis.yml
vendored
3
.github/workflows/codeql-analysis.yml
vendored
|
@ -5,12 +5,13 @@ on:
|
|||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
schedule:
|
||||
- cron: '25 16 * * 0'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
3
.github/workflows/coverage.yml
vendored
3
.github/workflows/coverage.yml
vendored
|
@ -11,9 +11,10 @@ on:
|
|||
pull_request:
|
||||
paths:
|
||||
- "!*.MD"
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
jobs:
|
||||
test:
|
||||
if: github.event.pull_request.draft == false
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
3
.github/workflows/pr-bandit.yml
vendored
3
.github/workflows/pr-bandit.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
bandit:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: type-check-${{ matrix.config.python-version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-docs.yml
vendored
3
.github/workflows/pr-docs.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
docsLinter:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: Lint Documentation
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-linter.yml
vendored
3
.github/workflows/pr-linter.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: lint
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
5
.github/workflows/pr-python310.yml
vendored
5
.github/workflows/pr-python310.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
testPy39:
|
||||
testPy310:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-python37.yml
vendored
3
.github/workflows/pr-python37.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
testPy37:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-python38.yml
vendored
3
.github/workflows/pr-python38.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
testPy38:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-python39.yml
vendored
3
.github/workflows/pr-python39.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
testPy39:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: ut-${{ matrix.config.tox-env }}-${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-type-check.yml
vendored
3
.github/workflows/pr-type-check.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
typeChecking:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: type-check-${{ matrix.config.python-version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
|
3
.github/workflows/pr-windows.yml
vendored
3
.github/workflows/pr-windows.yml
vendored
|
@ -3,10 +3,11 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types: [review_requested, ready_for_review]
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
jobs:
|
||||
testsOnWindows:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: ut-${{ matrix.config.tox-env }}
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
|
|
Loading…
Reference in New Issue
Block a user