Update tests to not run all the time (#2311)

This commit is contained in:
Adam Hopkins 2021-11-23 15:53:46 +02:00 committed by GitHub
parent 65e28b8c22
commit 2c03eee329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 23 additions and 37 deletions

View File

@ -5,6 +5,7 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
types: [review_requested, ready_for_review]
schedule:
- cron: '25 16 * * 0'

View File

@ -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 }}

View File

@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
types: [review_requested, ready_for_review]
jobs:
bandit:

View File

@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
types: [review_requested, ready_for_review]
jobs:
docsLinter:

View File

@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
types: [review_requested, ready_for_review]
jobs:
linter:

View File

@ -3,12 +3,7 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- sanic/*
- tests/*
types: [review_requested, ready_for_review]
jobs:
testPy39:

View File

@ -3,12 +3,7 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- sanic/*
- tests/*
types: [review_requested, ready_for_review]
jobs:
testPy37:

View File

@ -3,12 +3,7 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- sanic/*
- tests/*
types: [review_requested, ready_for_review]
jobs:
testPy38:

View File

@ -3,12 +3,7 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- sanic/*
- tests/*
types: [review_requested, ready_for_review]
jobs:
testPy39:

View File

@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
types: [review_requested, ready_for_review]
jobs:
typeChecking:

View File

@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
types: [review_requested, ready_for_review]
jobs:
testsOnWindows: