Commit 64ba26e
committed
ci: run bindings examples via pytest entrypoint
Analysis:
- examples were invoked via `python -m pytest` from within `cuda_bindings`
so the repo checkout was on sys.path and imports resolved to the source tree
- `setuptools_scm` generates `cuda/bindings/_version.py` only in the built wheel,
so the source tree lacks this file and `from cuda.bindings._version import __version__`
fails during example collection
- running `pytest` via the installed entrypoint avoids CWD precedence and keeps
imports coming from the installed wheel, which includes the generated version file
Change:
- switch Linux and Windows example steps to call `pytest` entrypoint1 parent dbd6464 commit 64ba26e
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
0 commit comments