@@ -13,31 +13,40 @@ jobs:
1313 fail-fast : false
1414 matrix :
1515 os : [ubuntu-latest, macos-latest, windows-latest]
16- python-version : ["3.10"]
16+ python-version : ["3.10", "3.11", "3.12" ]
1717 include :
1818 - os : ubuntu-latest
1919 path : ~/.cache/pip
2020 - os : macos-latest
2121 path : ~/Library/Caches/pip
2222 - os : windows-latest
2323 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"
2429
2530 steps :
2631 - name : Checkout code
2732 uses : actions/checkout@v4
2833
29- - name : Set up Python ${{ matrix.python-version }}
30- uses : actions /setup-python@v4
34+ - name : Install uv
35+ uses : astral-sh /setup-uv@v6
3136 with :
37+ enable-cache : " true"
38+ version : " 0.9.5"
3239 python-version : ${{ matrix.python-version }}
3340
34- - name : Set up Python
35- uses : conda-incubator/setup-miniconda@v3
36- with :
37- channels : conda-forge,defaults
38- channel-priority : strict
39- python-version : ${{ matrix.python-version }}
40-
41+ - name : Install the project
42+ run : |
43+ if [ "$RUNNER_OS" == "Windows" ] && [ "${{ matrix.python-version }}" != "3.10" ]; then
44+ uv sync --all-extras --no-extra tf --dev
45+ else
46+ uv sync --all-extras --dev
47+ fi
48+ shell : bash
49+
4150 - name : Install ffmpeg
4251 run : |
4352 if [ "$RUNNER_OS" == "Linux" ]; then
4958 choco install ffmpeg
5059 fi
5160 shell : bash
52-
53- - name : Install and test
54- shell : bash -el {0} # Important: activates the conda environment
55- run : |
56- conda install pytables==3.8.0 "numpy<2"
57-
58- - name : Install dependencies via Conda
59- shell : bash -el {0}
60- run : conda install -y "numpy>=1.26,<2.0"
61-
62- - name : Install Poetry
63- run : pip install --upgrade pip wheel poetry
64-
65- - name : Regenerate Poetry lock
66- run : poetry lock --no-cache
67-
68- - name : Install project dependencies
69- run : poetry install --with dev --extras "tf" --extras "pytorch"
7061
7162 - name : Run DLC Live Tests
72- run : poetry run dlc-live-test --nodisplay
63+ run : uv run dlc-live-test --nodisplay
7364
7465 - name : Run Functional Benchmark Test
75- run : poetry run pytest tests/test_benchmark_script.py
66+ run : uv run pytest tests/test_benchmark_script.py
0 commit comments