Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use the actual poetry command, rather than manually tweaking the …
…file (#1443) When handling charms that used poetry, the workflow would do a clone of the ops repo, tweak the poetry.lock file to include it and then re-lock. This leaves a copy of the ops repo around, and sometimes the ops tests get picked up by pytest, which is not what we want here. The PR changes this to use the proper `poetry add` functionality to add the appropriate version of ops, in the same way that the requirements.txt files are updated. Additional related fixes: * The test runs for the charmcraft profiles also had the operator clone but never used it, so remove that. * The charmcraft profile can safely run the static checks (since the charms are so minimal), and that would have caught an issue previously, so add that.
- Loading branch information