From a862f2b2a4f6cb1011d44a5ff2940687b7a7999d Mon Sep 17 00:00:00 2001 From: Matt Weiden <538456+mweiden@users.noreply.github.com> Date: Wed, 11 Mar 2020 14:16:05 -0700 Subject: [PATCH] Further refine compatibility tests (#1215) * Make sure apt is up to date before pulling hdf5 * Only install py dev reqs in cxg release vs anndata master test * Don't need bu flag when using sed on ubuntu * Don't re-install package reqs in python x anndata ver tests * Minor documentation fix --- .github/workflows/compatibility_tests.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compatibility_tests.yml b/.github/workflows/compatibility_tests.yml index 371d1311..929bb96f 100644 --- a/.github/workflows/compatibility_tests.yml +++ b/.github/workflows/compatibility_tests.yml @@ -38,8 +38,13 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - sudo apt-get install libhdf5-serial-dev - make pydist install-dist dev-env + # 1. only install the dev requirements on top of what is in the cellxgene pip package + sudo apt-get update && sudo apt-get install -y libhdf5-serial-dev + sed -i 's/-r requirements.txt//' server/requirements-dev.txt + pip install -r server/requirements-dev.txt + # 2. install cellxgene + make pydist install-dist + # 3. install anndata pip install anndata==${{ matrix.anndata-version }} # workaround for anndata 0.6.22.post1 bug [[ "0.6.22.post1" = "${{ matrix.anndata-version }}" ]] && pip install h5py==2.9.0 || true @@ -69,8 +74,14 @@ jobs: path: anndata - name: Install dependencies run: | + cd cellxgene + # 1. only install the dev requirements on top of what is in the cellxgene pip package + make dev-env-client + sed -i 's/-r requirements.txt//' server/requirements-dev.txt + pip install -r server/requirements-dev.txt + # 2. install cellxgene pip install --upgrade cellxgene - cd cellxgene && make dev-env + # 3. install anndata cd ../anndata && pip install -e . - name: Tests run: cd cellxgene && make unit-test ${{ matrix.test-suite }} @@ -99,7 +110,7 @@ jobs: - name: Install dependencies run: | cd cellxgene - sed -i.bu -E 's/^anndata[>=]=[0-9]+.[0-9]+.[0-9]+$/anndata/g' server/requirements.txt + sed -i -E 's/^anndata[>=]=[0-9]+.[0-9]+.[0-9]+$/anndata/g' server/requirements.txt make pydist install-dist dev-env cd ../anndata pip install -e .