@@ -32,52 +32,37 @@ jobs:
3232 with :
3333 submodules : true
3434
35- - name : Install Conda (needed for GSL)
36- uses : conda-incubator/setup-miniconda@v3.1.1
37- with :
38- activate-environment : anaconda-client-env
39- python-version : ${{ matrix.python }}
40- channels : conda-forge, anaconda
41- channel-priority : strict
42- auto-update-conda : true
4335
44- - name : Fix windows symlinks
45- # This is horrible, but the "git config core.symlinks true" didn't work.
46- if : matrix.os == 'windows-latest'
47- run : |
48- rm lwt_interface
49- cp -r --dereference git-submodules/tskit/python/lwt_interface ./lwt_interface
5036
51- - name : Fix windows .profile
52- if : steps.cache.outputs.cache-hit != 'true' && matrix.os == 'windows-latest'
53- run : |
54- cp ~/.bash_profile ~/.profile
5537
56- - name : Install GSL
57- if : steps.cache.outputs.cache-hit != 'true'
58- shell : bash -l {0} # We need a login shell to get conda
59- run : conda install gsl
38+ - name : Install GSL (macOS)
39+ if : matrix.os == 'macos-latest'
40+ run : brew install gsl
41+
42+ - name : Install GSL (Windows)
43+ if : matrix.os == 'windows-latest'
44+ run : vcpkg install gsl:x64-windows
45+ shell : cmd
46+
47+ - name : Install GSL (Ubuntu)
48+ if : matrix.os == 'ubuntu-24.04'
49+ run : sudo apt-get update && sudo apt-get install -y libgsl-dev
6050
61- - name : Install uv
51+ - name : Install uv and set the python version
6252 uses : astral-sh/setup-uv@v6
6353 with :
54+ python-version : ${{ matrix.python }}
6455 version : " 0.8.15"
6556
6657 - name : Install pip deps
67- shell : bash -l {0}
6858 run : |
59+ uv venv
6960 uv pip install -r pyproject.toml --extra test
7061
7162 - name : Build module
72- env :
73- MSP_CONDA_PREFIX : c:\Miniconda\envs\anaconda-client-env
7463 run : |
75- source ~/.profile
76- conda activate anaconda-client-env
77- python setup.py build_ext --inplace
64+ uv run --no-sync python setup.py build_ext --inplace
7865
7966 - name : Run tests
8067 run : |
81- source ~/.profile
82- conda activate anaconda-client-env
83- pytest -xvs -n0
68+ uv run --no-sync pytest -xvs -n0
0 commit comments