Skip to content

Python cellxgene_census package full unit tests #9

Python cellxgene_census package full unit tests

Python cellxgene_census package full unit tests #9

name: Python cellxgene_census package full unit tests
# Run all Python unit tets, including those that are too expensive to run frequently.
on:
workflow_dispatch: # used for debugging or manual validation
jobs:
all_unit_tests:
runs-on: single-cell-1tb-runner
steps:
- name: Install OS dependencies
run: |
sudo apt update
sudo apt install -y build-essential git-all
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install python dependencies (including experimental)
run: |
python -m pip install -U pip setuptools setuptools_scm wheel
pip install --use-pep517 accumulation-tree # Geneformer dependency needs --use-pep517 for Cython
pip install -r ./api/python/cellxgene_census/scripts/requirements-dev.txt
pip install './api/python/cellxgene_census/[experimental]'
- name: Log debugging info
run: |
python -c 'import tiledbsoma; tiledbsoma.show_package_versions()'
pip freeze
- name: Pytest (--expensive --experimental)
run: |
PYTHONPATH=. pytest -v --durations=0 -rP --experimental --expensive ./api/python/cellxgene_census/tests/