Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI tests for plugins #202

Open
nightlark opened this issue May 15, 2024 · 0 comments
Open

CI tests for plugins #202

nightlark opened this issue May 15, 2024 · 0 comments
Assignees
Labels

Comments

@nightlark
Copy link
Collaborator

Currently, things under the plugins folder are untested -- a GitHub Actions CI workflow should be created that at minimum makes sure they can be pip installed, and ideally would try running them on a test file that uses the plugin functionality.

A first pass could look be a workflow that for each subdirectory in the plugins folder (perhaps with a list of directories to ignore):

  • creates a fresh Python venv (look at using uv -- it is fast)
  • install Surfactant
  • install the plugin
  • try running the plugin on some test files to make sure the plugin at least doesn't crash...
  • ideally: compare the generated SBOM against the expected output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants