Skip to content

Commit

Permalink
Python Wrapper: Add skip workflow on required (#7087)
Browse files Browse the repository at this point in the history
* Python Wrapper: Add skip workflow on required

* CR Fixes
  • Loading branch information
N-o-Z authored Dec 1, 2023
1 parent 5e83d87 commit b720c98
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/python-wrapper-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,34 @@ on:
branches:
- master
pull_request:
paths:
- "clients/python-wrapper/**"

jobs:
paths-filter:
runs-on: ubuntu-latest
outputs:
client-change: ${{ steps.filter.outputs.client == 'true' }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
client:
- 'clients/python-wrapper/**'
- '.github/workflows/python-wrapper-unit-tests.yaml'
always-succeed:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.client-change != 'true' }}
name: Unit Test Python SDK Wrapper
runs-on: ubuntu-22.04
steps:
- name: Always Succeed
run: echo "No changes in client - skipping unit tests"

unit-tests:
needs: paths-filter
if: ${{ needs.paths-filter.outputs.client-change == 'true' }}
name: Unit Test Python SDK Wrapper
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit b720c98

Please sign in to comment.