Skip to content

Commit e7bb461

Browse files
committed
ci(regression): test against MDAnalysis pre-release with eigh principal_axes
1 parent 7b3af1b commit e7bb461

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎.github/workflows/pr.yaml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,25 @@ jobs:
8989
python -m pip install --upgrade pip
9090
python -m pip install -e .[testing]
9191
92+
- name: Install MDA 2.11 pre-release
93+
run: |
94+
git clone https://github.com/MDAnalysis/mdanalysis.git "$RUNNER_TEMP/mdanalysis"
95+
git -C "$RUNNER_TEMP/mdanalysis" checkout f765ecd77c8d51d79bec87c9780a0fab80c7d43c
96+
python -m pip install "$RUNNER_TEMP/mdanalysis/package"
97+
98+
- name: Verify MDA uses eigh in principal_axes
99+
run: |
100+
python - <<'EOF'
101+
import inspect
102+
import MDAnalysis
103+
from MDAnalysis.core import topologyattrs
104+
105+
print("MDAnalysis", MDAnalysis.__version__)
106+
assert "np.linalg.eigh(atomgroup.moment_of_inertia" in inspect.getsource(
107+
topologyattrs
108+
)
109+
EOF
110+
92111
- name: Run fast regression tests
93112
run: |
94113
python -m pytest tests/regression \

0 commit comments

Comments
 (0)