Skip to content

Commit 8336cf0

Browse files
committed
WIP
1 parent d0acd96 commit 8336cf0

3 files changed

Lines changed: 12 additions & 16 deletions

File tree

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
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:

.github/workflows/tests.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,8 @@ jobs:
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

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)