Package_version#
This test checks if the frozen resolve specified in tests/versions.txt
is a subset of mamba list
. Mamba installs these packages as specified in base/config.yml
during the Setup-and-Build
stage of the workflow. The logic of the version checking is in tests/version_check.py
If a package in tests/versions.txt
is missing in the output of mamba list
or there is a version mismatch, the test fails, causing the workflow to cancel, and the test prints the mismatched/missing packages. Otherwise the test passes and prints the matching packages.
Validating True Positive#
Here is an example of a run where the test passes properly.
Validating Proper Negative#
Here is an example where the test fails since we removed jupyterlab-myst
from base/config.yml
causing it to be missing from mamba list
even though it’s expected by tests/versions.txt
.