From 416460e0136e0c67f3fc8a041a4aed845c9c3939 Mon Sep 17 00:00:00 2001 From: Evgen Fil Date: Sun, 26 Jun 2022 21:16:17 +0500 Subject: [PATCH] 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 --- .github/workflows/tests.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73eac1b8..ba68db9b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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