ci(molecule): run Molecule from the ci image instead of the runner's venv
Pin molecule and its Docker driver in requirements-dev.txt and bake them, with the driver's collection, into the ci image. The Molecule job runs docker run on the pinned ci image with the Docker socket and the checkout mounted at the same path, as the runner user. A pull request whose pins differ from the image installs its own pins first, so a core bump runs its scenarios on the new core. gitea_runner no longer installs the molecule venv and collections. Closes #225 Assisted-by: Claude Code
This commit is contained in:
1 parent
d9be7b7dc8
commit
2e32016c43
25 files changed
+292
-275
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Pinned tooling for lint and build, used by CI (.gitea/workflows) and locally:
|
||||
# Pinned tooling for lint, build and Molecule, used by CI (.gitea/workflows) and locally:
|
||||
# python3 -m venv .venv && . .venv/bin/activate && pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt
|
||||
# This file holds the direct pins; requirements-dev.lock is their hashed lock (every transitive
|
||||
# package too, with the sha256 of each release file) and is what gets installed; pip refuses an
|
||||
@@ -12,6 +12,8 @@ pre-commit==4.7.0
|
||||
antsibull-changelog==0.37.0
|
||||
galaxy-importer==0.4.44
|
||||
reuse==6.3.0
|
||||
molecule==26.11.0
|
||||
molecule-plugins[docker]==26.11.0
|
||||
# apm-cli: for changing apm.yml (run apm install, commit the lock). Keep it at 0.36.1 or later (#252):
|
||||
# before 0.29.0, `apm audit --ci` compares the whole .claude/settings.json and fails on any hand-written key.
|
||||
apm-cli==0.36.1
|
||||
Reference in new issue
Block a user