Skip to content

Commit 6e31af9

Browse files
committed
Add CI check to ensure that all headers are ignored or wrapped
1 parent 69f649c commit 6e31af9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/dist.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ jobs:
212212
SCCACHE_WEBDAV_USERNAME: ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
213213
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WPI_ARTIFACTORY_TOKEN }}
214214

215+
- name: Ensure all headers are accounted for
216+
run: |
217+
python -m devtools scan-headers --check
218+
215219
- uses: actions/upload-artifact@v4
216220
with:
217221
name: "pypi-meson-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python_version }}"

subprojects/robotpy-cscore/pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ update_init = [
7878
"cscore"
7979
]
8080

81+
scan_headers_ignore = [
82+
# Only wrapping the C++ API
83+
"cscore.h",
84+
"cscore_c.h",
85+
"cscore_raw.h",
86+
87+
# Not needed
88+
"cameraserver/CameraServerShared.h",
89+
"vision/VisionPipeline.h",
90+
"vision/VisionRunner.h",
91+
92+
# Not wrapping OpenCV or cvnp
93+
"cvnp/*",
94+
"opencv2/*"
95+
]
96+
8197
[tool.semiwrap.extension_modules."cscore._cscore"]
8298
name = "cscore"
8399

0 commit comments

Comments
 (0)