44 push :
55 branches : [main]
66 pull_request :
7- branches : [main]
87
98jobs :
109 build :
@@ -13,33 +12,36 @@ jobs:
1312 strategy :
1413 fail-fast : false
1514 matrix :
16- os : [ubuntu-latest, macos-latest] # windows-latest
17- python-version : ["3.9", "3.10"] # 3.11+ issues with TF
18- exclude :
19- - os : macos-latest
20- python-version : " 3.9"
15+ os : [ubuntu-latest, macos-latest, windows-latest]
16+ python-version : ["3.10", "3.11", "3.12"]
2117 include :
2218 - os : ubuntu-latest
2319 path : ~/.cache/pip
2420 - os : macos-latest
2521 path : ~/Library/Caches/pip
22+ - os : windows-latest
23+ path : ~\AppData\Local\pip\Cache
24+ exclude :
25+ - os : windows-latest
26+ python-version : " 3.11"
27+ - os : windows-latest
28+ python-version : " 3.12"
2629
2730 steps :
2831 - name : Checkout code
2932 uses : actions/checkout@v4
3033
31- - name : Set up Python ${{ matrix.python-version }}
32- uses : actions /setup-python@v4
34+ - name : Install uv
35+ uses : astral-sh /setup-uv@v6
3336 with :
37+ enable-cache : true
38+ version : " 0.9.5"
3439 python-version : ${{ matrix.python-version }}
3540
36- - name : Set up Python
37- uses : conda-incubator/setup-miniconda@v3
38- with :
39- channels : conda-forge,defaults
40- channel-priority : strict
41- python-version : ${{ matrix.python-version }}
42-
41+ - name : Install the project
42+ run : uv sync --all-extras --dev
43+ shell : bash
44+
4345 - name : Install ffmpeg
4446 run : |
4547 if [ "$RUNNER_OS" == "Linux" ]; then
5153 choco install ffmpeg
5254 fi
5355 shell : bash
54-
55- - name : Install PyTables through Conda
56- shell : bash -el {0} # Important: activates the conda environment
57- run : |
58- conda install pytables==3.8.0 "numpy<2"
59-
60- - name : Install dependencies via Conda
61- shell : bash -el {0}
62- run : conda install -y "numpy>=1.26,<2.0"
63-
64- - name : Install Poetry
65- run : pip install --upgrade pip wheel poetry
66-
67- - name : Regenerate Poetry lock
68- run : poetry lock --no-cache
69-
70- - name : Install project dependencies
71- run : poetry install --with dev
7256
7357 - name : Run DLC Live Tests
74- run : poetry run dlc-live-test --nodisplay
58+ run : uv run dlc-live-test --nodisplay
7559
7660 - name : Run Functional Benchmark Test
77- run : poetry run pytest tests/test_benchmark_script.py
61+ run : uv run pytest
0 commit comments