Skip running tests when there are no code or test changes (#948)

* Skip running tests when there are no code or test changes

* Allow config file changes to trigger tests
This commit is contained in:
Evgen Fil 2022-06-26 21:16:17 +05:00 committed by GitHub
parent 2cb0fd1c4b
commit 416460e013
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,29 @@ on:
push:
branches:
- dev-3.x
paths:
- ".github/workflows/tests.yml"
- "aiogram/**"
- "tests/**"
- ".coveragerc"
- ".flake8"
- "codecov.yaml"
- "mypy.ini"
- "poetry.lock"
- "pyproject.toml"
pull_request:
branches:
- dev-3.x
paths:
- ".github/workflows/tests.yml"
- "aiogram/**"
- "tests/**"
- ".coveragerc"
- ".flake8"
- "codecov.yaml"
- "mypy.ini"
- "poetry.lock"
- "pyproject.toml"
jobs:
build:
@ -24,7 +44,7 @@ jobs:
- '3.10'
defaults:
# Windows is sucks. Force use bash instead of PowerShell
# Windows sucks. Force use bash instead of PowerShell
run:
shell: bash