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+ source .venv/bin/activate
33+ uv pip install build twine meson
34+ uv pip install -r pyproject.toml --extra test
3235 # way to set path persistently https://circleci.com/docs/2.0/env-vars/#setting-path
3336 echo 'export PATH=/home/circleci/.local/bin:$PATH' >> $BASH_ENV
3437 - save_cache :
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 @@ -81,8 +81,8 @@ test = [
8181 " pytest-xdist==3.8.0" ,
8282 " python_jsonschema_objects==0.5.7" ,
8383 " setuptools==80.9.0" ,
84- " scipy==1.13.1; python_version<='3.9 '" ,
85- " scipy==1.16.1; python_version>'3.9 '" ,
84+ " scipy==1.13.1; python_version<='3.10 '" ,
85+ " scipy==1.16.1; python_version>'3.10 '" ,
8686 " tskit==0.6.4"
8787]
8888
You can’t perform that action at this time.
0 commit comments