Skip to content

Conversation

@rwgk
Copy link
Collaborator

@rwgk rwgk commented Jan 20, 2026

Closes #697

  • run cuda_bindings examples in CI on Linux and Windows
  • align example execution with existing bindings test environment

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Jan 20, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@rwgk rwgk self-assigned this Jan 20, 2026
@rwgk
Copy link
Collaborator Author

rwgk commented Jan 20, 2026

/ok to test

@github-actions
Copy link

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` entrypoint
@rwgk
Copy link
Collaborator Author

rwgk commented Jan 20, 2026

/ok to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cuda-bindings examples are not run as part of the CI

1 participant