Skip to content

Commit 365f83a

Browse files
committed
update gha to use python package
1 parent 08f72ba commit 365f83a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/check-c-abi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
pull_request:
77
paths:
88
- 'c/include/**'
9-
- 'ci/check_c_abi.py'
9+
- 'ci/check_c_abi/**'
1010
- '.github/workflows/check-c-abi.yaml'
1111
push:
1212
branches:
1313
- main
1414
paths:
1515
- 'c/include/**'
16-
- 'ci/check_c_abi.py'
16+
- 'ci/check_c_abi/**'
1717

1818
concurrency:
1919
group: ${{ github.workflow }}-${{ github.ref }}
@@ -48,7 +48,7 @@ jobs:
4848
- name: Install Python dependencies
4949
run: |
5050
pip install --upgrade pip
51-
pip install msgspec libclang termcolor
51+
pip install -e ci/check_c_abi
5252
5353
- name: Build C++ project to get dependencies (dlpack)
5454
run: |
@@ -64,7 +64,7 @@ jobs:
6464
- name: Extract ABI from main branch
6565
run: |
6666
mkdir -p baseline
67-
python ci/check_c_abi.py extract \
67+
check-c-abi extract \
6868
--header-path c/include \
6969
--include-file cuvs/core/all.h \
7070
--output-file baseline/c_abi.json.gz
@@ -111,7 +111,7 @@ jobs:
111111
- name: Install Python dependencies
112112
run: |
113113
pip install --upgrade pip
114-
pip install msgspec libclang termcolor
114+
pip install ci/check_c_abi
115115
116116
- name: Build C++ project to get dependencies (dlpack)
117117
run: |
@@ -168,7 +168,7 @@ jobs:
168168
-DBUILD_EXAMPLES=OFF
169169
cd ../../..
170170
mkdir -p baseline
171-
python ci/check_c_abi.py extract \
171+
check-c-abi extract \
172172
--header-path ../cuvs-main/c/include \
173173
--include-file cuvs/core/all.h \
174174
--output-file baseline/c_abi.json.gz
@@ -186,7 +186,7 @@ jobs:
186186
187187
- name: Analyze current branch for ABI breaking changes
188188
run: |
189-
python ci/check_c_abi.py analyze \
189+
check-c-abi analyze \
190190
--abi-file baseline/c_abi.json.gz \
191191
--header-path c/include \
192192
--include-file cuvs/core/all.h

0 commit comments

Comments
 (0)