Skip to content

Commit d499172

Browse files
authored
test: Migrate KFP SDK YAPF test to a GHA Workflow (#10961)
Signed-off-by: ddalvi <ddalvi@redhat.com>
1 parent fb9213b commit d499172

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/sdk-yapf.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: KFP SDK YAPF Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'sdk/python/**'
9+
- 'test/presubmit-yapf-sdk.sh'
10+
- '.github/workflows/sdk-yapf.yml'
11+
pull_request:
12+
branches:
13+
- master
14+
paths:
15+
- 'sdk/python/**'
16+
- 'test/presubmit-yapf-sdk.sh'
17+
- '.github/workflows/sdk-yapf.yml'
18+
19+
jobs:
20+
yapf-sdk:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.8'
31+
32+
- name: Install dependencies
33+
run: pip install yapf
34+
35+
- name: Run YAPF SDK Tests
36+
run: ./test/presubmit-yapf-sdk.sh

0 commit comments

Comments
 (0)