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

[WIP]: add optional pre_run test config to allow running interface tests on uv/poetry/monorepo charms #222

Merged
merged 7 commits into from
Feb 10, 2025

Conversation

PietroPasotti
Copy link
Contributor

@PietroPasotti PietroPasotti commented Feb 10, 2025

Not all charms come with a requirements.txt file.
For those who don't, this feature adds a configurable pre-test-run step that gives the interface test configurator a chance to run a bash script to generate a requirements.txt file.

Fixes #216

For monorepo charms, added a charm_root test config option that allows you to run interface tests on charms that don't live at the root of their repo.

Fixes #219

To make this less OP, we could also consider a more 'targeted' approach and specifically target uv and poetry to set things up.

Tandem pr: canonical/pytest-interface-tester#29

@jnsgruk jnsgruk force-pushed the feat/remote_repo_venv_setup branch from 55af89b to 14ef580 Compare February 10, 2025 14:43
Copy link
Member

@jnsgruk jnsgruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is a linting failure that needs addressing before we can progress this.

@PietroPasotti
Copy link
Contributor Author

Looks like there is a linting failure that needs addressing before we can progress this.

I meant to open this as draft, sorry. WIP still

@PietroPasotti PietroPasotti changed the title add optional pre_run test config to allow running interface tests on uv/poetry/monorepo charms [WIP]: add optional pre_run test config to allow running interface tests on uv/poetry/monorepo charms Feb 10, 2025
@jnsgruk jnsgruk marked this pull request as draft February 10, 2025 14:47
@PietroPasotti PietroPasotti marked this pull request as ready for review February 10, 2025 15:25
@jnsgruk jnsgruk merged commit 2efc35d into main Feb 10, 2025
7 checks passed
@jnsgruk jnsgruk deleted the feat/remote_repo_venv_setup branch February 10, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants