Skip to content

Commit de5c0d3

Browse files
committed
try with session info
1 parent 2bc9593 commit de5c0d3

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ jobs:
7373
cache-dependency-glob: pyproject.toml
7474
- name: create hatch environment
7575
run: uvx hatch env create ${{ matrix.env.name }}
76-
- name: Ensure environment is resolved
77-
run: uvx hatch run ${{ matrix.env.name }}:python -c "import sys"
7876
- name: run tests using hatch
7977
env:
8078
MPLBACKEND: agg
@@ -85,14 +83,9 @@ jobs:
8583
run: uvx hatch run ${{ matrix.env.name }}:coverage xml
8684
- name: Upload coverage
8785
uses: codecov/codecov-action@v5.4.3
88-
- name: Print pip freeze
86+
- name: Print session info after importing liana
8987
if: always()
90-
run: uvx hatch run ${{ matrix.env.name }}:pip freeze
91-
- name: Print key package versions
92-
if: always()
93-
run: |
94-
uvx hatch run ${{ matrix.env.name }}:python -c "import importlib\npkgs = [\n 'anndata', 'mudata', 'scanpy', 'numba', 'tqdm', 'docrep', 'plotnine', 'session_info2',\n 'decoupler', 'omnipath', 'pydeseq2', 'cell2cell', 'kneed', 'muon', 'mofax', 'mofapy2',\n 'requests', 'corneto', 'cvxpy_base', 'PySCIPOpt', 'numpy'\n]\nfor pkg in pkgs:\n try:\n m = importlib.import_module(pkg.replace('-', '_').replace('.', '_'))\n print(f'{pkg}:', getattr(m, '__version__', 'no __version__'))\n except Exception as e:\n print(f'{pkg}: not installed ({{e}})')\n"
95-
88+
run: uvx hatch run ${{ matrix.env.name }}:python -c "import liana; import session_info2; session_info2.show()"
9689
# Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
9790
# protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
9891
check:

0 commit comments

Comments
 (0)