Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defaults:

jobs:
test:
name: ${{ matrix.os }}, 🐍=${{ matrix.python-version }}, 🟠=${{ matrix.ambertools }}, 👁️=${{ matrix.openeye }}, 🐉=${{ matrix.mamba-executable }}
name: ${{ matrix.os }}, 🐍=${{ matrix.python-version }}, 🟠=${{ matrix.ambertools }}, 👁️=${{ matrix.openeye }}, 🐉=${{ matrix.mamba-executable }}@${{ matrix.micromamba-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -27,6 +27,11 @@ jobs:
ambertools: [false, true]
openeye: [false, true]
mamba-executable: ["micromamba"] # TODO: Add "mamba" back
# TEMPORARY, for #156: pin both the pre- and post-4202 micromamba
# releases to confirm the packages-key fix covers both `list --json`
# formats. Revert this axis (and the micromamba-version input below)
# before merging.
micromamba-version: ["2.8.1-0", "2.9.0-0"]
exclude:
- python-version: "3.14"
ambertools: true
Expand All @@ -47,6 +52,7 @@ jobs:
uses: mamba-org/setup-micromamba@v3
with:
environment-file: devtools/conda-envs/test_env.yaml
micromamba-version: ${{ matrix.micromamba-version }}
create-args: >-
python=${{ matrix.python-version }}

Expand Down
6 changes: 6 additions & 0 deletions openff/utilities/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ def _get_conda_list_package_versions() -> dict[str, str]:

output = json.loads(subprocess.check_output(conda_command.split()).decode())

# micromamba >= 2.9.0 nests the package list under a "packages" key instead
# of returning it as the top-level array (mamba-org/mamba#4202, issue #156).
# conda, mamba, pixi, and micromamba < 2.9.0 all return the bare array.
if isinstance(output, dict):
output = output.get("packages", [])

package_versions = {}
for _package in output:
package_versions[_package["name"]] = _package["version"]
Expand Down