From 033bd82c0c2865d5c9dca312f87843ff8fc254f1 Mon Sep 17 00:00:00 2001 From: evgfilim1 Date: Sun, 26 Jun 2022 14:02:37 +0500 Subject: [PATCH] Skip running tests when there are no code or test changes --- .github/workflows/tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73eac1b8..32a3d1a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,9 +4,17 @@ on: push: branches: - dev-3.x + paths: + - "aiogram/**" + - "tests/**" + - ".github/workflows/tests.yml" pull_request: branches: - dev-3.x + paths: + - "aiogram/**" + - "tests/**" + - ".github/workflows/tests.yml" jobs: build: @@ -24,7 +32,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