From 2c03eee32948aa7d0c2f156244c25e22541f9e21 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Tue, 23 Nov 2021 15:53:46 +0200 Subject: [PATCH] Update tests to not run all the time (#2311) --- .github/workflows/codeql-analysis.yml | 1 + .github/workflows/coverage.yml | 26 +++++++++++++------------- .github/workflows/pr-bandit.yml | 1 + .github/workflows/pr-docs.yml | 1 + .github/workflows/pr-linter.yml | 1 + .github/workflows/pr-python310.yml | 7 +------ .github/workflows/pr-python37.yml | 7 +------ .github/workflows/pr-python38.yml | 7 +------ .github/workflows/pr-python39.yml | 7 +------ .github/workflows/pr-type-check.yml | 1 + .github/workflows/pr-windows.yml | 1 + 11 files changed, 23 insertions(+), 37 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 18415b68..6f379006 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,6 +5,7 @@ on: branches: [ main ] pull_request: branches: [ main ] + types: [review_requested, ready_for_review] schedule: - cron: '25 16 * * 0' diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 56a98398..4293ae74 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,17 +1,17 @@ name: Coverage check -# on: -# push: -# branches: -# - main -# tags: -# - "!*" # Do not execute on tags -# paths: -# - sanic/* -# - tests/* -# pull_request: -# paths: -# - "!*.MD" -on: [push, pull_request] +on: + push: + branches: + - main + tags: + - "!*" # Do not execute on tags + paths: + - sanic/* + - tests/* + pull_request: + paths: + - "!*.MD" + types: [review_requested, ready_for_review] jobs: test: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/pr-bandit.yml b/.github/workflows/pr-bandit.yml index c90514e8..97aade87 100644 --- a/.github/workflows/pr-bandit.yml +++ b/.github/workflows/pr-bandit.yml @@ -3,6 +3,7 @@ on: pull_request: branches: - main + types: [review_requested, ready_for_review] jobs: bandit: diff --git a/.github/workflows/pr-docs.yml b/.github/workflows/pr-docs.yml index 1a6871c2..2d01315a 100644 --- a/.github/workflows/pr-docs.yml +++ b/.github/workflows/pr-docs.yml @@ -3,6 +3,7 @@ on: pull_request: branches: - main + types: [review_requested, ready_for_review] jobs: docsLinter: diff --git a/.github/workflows/pr-linter.yml b/.github/workflows/pr-linter.yml index 6165a988..83f7e458 100644 --- a/.github/workflows/pr-linter.yml +++ b/.github/workflows/pr-linter.yml @@ -3,6 +3,7 @@ on: pull_request: branches: - main + types: [review_requested, ready_for_review] jobs: linter: diff --git a/.github/workflows/pr-python310.yml b/.github/workflows/pr-python310.yml index 713f6495..327672a9 100644 --- a/.github/workflows/pr-python310.yml +++ b/.github/workflows/pr-python310.yml @@ -3,12 +3,7 @@ on: pull_request: branches: - main - push: - branches: - - main - paths: - - sanic/* - - tests/* + types: [review_requested, ready_for_review] jobs: testPy39: diff --git a/.github/workflows/pr-python37.yml b/.github/workflows/pr-python37.yml index 485f2592..3fb65117 100644 --- a/.github/workflows/pr-python37.yml +++ b/.github/workflows/pr-python37.yml @@ -3,12 +3,7 @@ on: pull_request: branches: - main - push: - branches: - - main - paths: - - sanic/* - - tests/* + types: [review_requested, ready_for_review] jobs: testPy37: diff --git a/.github/workflows/pr-python38.yml b/.github/workflows/pr-python38.yml index 8c46b86b..f8bcb062 100644 --- a/.github/workflows/pr-python38.yml +++ b/.github/workflows/pr-python38.yml @@ -3,12 +3,7 @@ on: pull_request: branches: - main - push: - branches: - - main - paths: - - sanic/* - - tests/* + types: [review_requested, ready_for_review] jobs: testPy38: diff --git a/.github/workflows/pr-python39.yml b/.github/workflows/pr-python39.yml index cdccf0d2..3e1967bd 100644 --- a/.github/workflows/pr-python39.yml +++ b/.github/workflows/pr-python39.yml @@ -3,12 +3,7 @@ on: pull_request: branches: - main - push: - branches: - - main - paths: - - sanic/* - - tests/* + types: [review_requested, ready_for_review] jobs: testPy39: diff --git a/.github/workflows/pr-type-check.yml b/.github/workflows/pr-type-check.yml index 80d8d9fa..73cfba90 100644 --- a/.github/workflows/pr-type-check.yml +++ b/.github/workflows/pr-type-check.yml @@ -3,6 +3,7 @@ on: pull_request: branches: - main + types: [review_requested, ready_for_review] jobs: typeChecking: diff --git a/.github/workflows/pr-windows.yml b/.github/workflows/pr-windows.yml index 73e29d4f..40ecb020 100644 --- a/.github/workflows/pr-windows.yml +++ b/.github/workflows/pr-windows.yml @@ -3,6 +3,7 @@ on: pull_request: branches: - main + types: [review_requested, ready_for_review] jobs: testsOnWindows: