Repository: tskit-dev/tsinfer (language: python)

Issue:
Circle CI failure
`ImportError: cannot import name 'Ttest_1sampResult' from 'scipy.stats.stats'`


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index c2503d0e..d0d8cfeb 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -16,7 +16,7 @@ env:
 jobs:
   build-deploy-docs:
     name: Docs
-    runs-on: ubuntu-18.04
+    runs-on: ubuntu-latest
     steps:
       - name: Cancel Previous Runs
         uses: styfle/cancel-workflow-action@0.11.0
@@ -39,12 +39,15 @@ jobs:
         id: cache
         with:
           path: venv
-          key: docs-venv-v1-${{ hashFiles('requirements/CI-docs/requirements.txt') }}
+          key: docs-venv-v2-${{ hashFiles('requirements/CI-docs/requirements.txt') }}
 
       - name: Build virtualenv
         if: steps.cache.outputs.cache-hit != 'true'
         run: python -m venv venv
 
+      - name: Downgrade pip to allow conflicting deps
+        run: venv/bin/activate && pip install pip==20.0.2
+
       - name: Install deps
         run: venv/bin/activate && pip install -r requirements/CI-docs/requirements.txt
 
diff --git a/requirements/CI-docs/requirements.txt b/requirements/CI-docs/requirements.txt
index 5239b0b1..443731a9 100644
--- a/requirements/CI-docs/requirements.txt
+++ b/requirements/CI-docs/requirements.txt
@@ -13,3 +13,4 @@ tskit==0.5.3
 tskit-book-theme==0.3.2
 tqdm==4.64.0
 zarr==2.11.3
+jsonschema[format-nongpl]==4.17.3
\ No newline at end of file


Test patch:
diff --git a/requirements/CI-tests-complete/requirements.txt b/requirements/CI-tests-complete/requirements.txt
index 4d3a6673..9eb00cc0 100644
--- a/requirements/CI-tests-complete/requirements.txt
+++ b/requirements/CI-tests-complete/requirements.txt
@@ -8,8 +8,7 @@ humanize==4.1.0
 lmdb==1.3.0
 matplotlib==3.4.1
 meson==0.62.0
-msprime==1.1.1
-numpy==1.21.6
+msprime==1.2.0
 pandas==1.3.5
 pytest==7.1.2
 pytest-cov==3.0.0
@@ -19,6 +18,6 @@ setuptools==65.5.0
 sgkit[vcf]==0.5.0
 sortedcontainers==2.4.0
 tqdm==4.64.0
-tskit==0.5.3
+tskit==0.5.4
 twine==4.0.1
-zarr==2.10.3
+scipy==1.9.3 #Specified due to dask incompatibility error (tsinfer#790)