File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 command : |
2828 sudo apt-get update
2929 sudo apt-get install libgsl0-dev libcunit1-dev libconfig-dev ninja-build valgrind clang
30- pip install --user build twine meson
31- pip install --user -e ".[test]"
30+ pip install uv
31+ uv venv
32+ uv pip install build twine meson
33+ uv pip install -r pyproject.toml --extra test
3234 # way to set path persistently https://circleci.com/docs/2.0/env-vars/#setting-path
3335 echo 'export PATH=/home/circleci/.local/bin:$PATH' >> $BASH_ENV
3436 - save_cache :
@@ -39,12 +41,14 @@ jobs:
3941 - run :
4042 name : Compile Python
4143 command : |
44+ source .venv/bin/activate
4245 make allchecks
4346
4447 - run :
4548 name : Run highlevel tests
4649 # Run tests without background threads
4750 command : |
51+ source .venv/bin/activate
4852 pytest --cov=msprime --cov-report=xml --cov-branch -n 0 tests
4953
5054 - codecov/upload :
Original file line number Diff line number Diff line change 4343 with :
4444 submodules : true
4545
46- - name : Cache conda and dependencies
47- id : cache
48- uses : actions/cache@v4.2.2
49- with :
50- path : ${{ env.CONDA }}/envs
51- key : ${{ runner.os }}-${{ runner.arch }}-${{ matrix.python}}-conda-v3-${{ hashFiles('requirements/conda-minimal.txt') }}-${{ hashFiles('pyproject.toml') }}
52-
53- - name : Install Conda
46+ - name : Install Conda (needed for GSL)
5447 uses : conda-incubator/setup-miniconda@v3.1.1
55- if : steps.cache.outputs.cache-hit != 'true'
5648 with :
5749 activate-environment : anaconda-client-env
5850 python-version : ${{ matrix.python }}
@@ -72,18 +64,17 @@ jobs:
7264 run : |
7365 cp ~/.bash_profile ~/.profile
7466
75- - name : Install conda deps
67+ - name : Install GSL
7668 if : steps.cache.outputs.cache-hit != 'true'
7769 shell : bash -l {0} # We need a login shell to get conda
7870 run : conda install gsl
7971
80- - name : Install a specific version of uv
72+ - name : Install uv
8173 uses : astral-sh/setup-uv@v6
8274 with :
8375 version : " 0.8.15"
8476
8577 - name : Install pip deps
86- if : steps.cache.outputs.cache-hit != 'true'
8778 shell : bash -l {0}
8879 run : |
8980 uv pip install -r pyproject.toml --extra test
Original file line number Diff line number Diff line change @@ -78,11 +78,12 @@ test = [
7878 " kastore==0.3.3" ,
7979 " newick==1.10.0" ,
8080 " pytest==8.4.1" ,
81+ " pytest-cov" ,
8182 " pytest-xdist==3.8.0" ,
8283 " python_jsonschema_objects==0.5.7" ,
8384 " setuptools==80.9.0" ,
84- " scipy==1.13.1; python_version<='3.9 '" ,
85- " scipy==1.16.1; python_version>'3.9 '" ,
85+ " scipy==1.13.1; python_version<='3.10 '" ,
86+ " scipy==1.16.1; python_version>'3.10 '" ,
8687 " tskit==0.6.4"
8788]
8889
You can’t perform that action at this time.
0 commit comments