Skip to content

Commit

Permalink
Update python.yml to add check-modified-files
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed May 28, 2024
1 parent 98fd607 commit ae3de18
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae3de18

Please sign in to comment.