From ae3de185d755c0e40fc1ad0ef3537ef85a562dd0 Mon Sep 17 00:00:00 2001 From: Marty Tippin <120425148+tippmar-nr@users.noreply.github.com> Date: Tue, 28 May 2024 14:35:36 -0500 Subject: [PATCH] Update python.yml to add check-modified-files --- .github/workflows/python.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index cf66bad..3e3501f 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -32,8 +32,20 @@ env: K8S_OPERATOR_IMAGE_TAG: edge jobs: + check-modified-files: + name: Check whether any Python-related files were modified, skip the test job if not + uses: ./.github/workflows/check-modified-files.yml + secrets: inherit + permissions: + contents: read + with: + agent-language: python + test: runs-on: ubuntu-latest + needs: check-modified-files + # run only if Python-related files were modified + if: needs.check-modified-files.outputs.files-changed == 'true' steps: - name: Checkout code