From e19cd87b24f95c56c6f55dbdd129d0bde4736069 Mon Sep 17 00:00:00 2001 From: Javier Martinez Date: Tue, 2 Jun 2026 20:25:42 +0200 Subject: [PATCH] ci: not run tests when no src changes (#2237) * ci: not run tests when no src changes * ci: update action --- .github/workflows/tests.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82f2b8a1..5ce6b9b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,20 +5,22 @@ on: branches: - main pull_request: + paths: + - 'private_gpt/**' + - 'tests/**' + - 'scripts/**' + - 'pyproject.toml' + - 'uv.lock' + - 'Makefile' + - 'Dockerfile' + - '.github/workflows/tests.yml' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: - setup: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ./.github/workflows/actions/install_dependencies - checks: - needs: setup runs-on: ubuntu-latest name: ${{ matrix.quality-command }} strategy: @@ -34,7 +36,6 @@ jobs: run: make ${{ matrix.quality-command }} test: - needs: setup runs-on: ubuntu-latest name: test steps: