@@ -35,23 +35,23 @@ jobs:
3535 include :
3636 - os : ubuntu-latest
3737 python-version : " 3.9"
38- dependency-set : minimum
38+ dependency-set : lowest-direct
3939 - os : macos-15-intel # We need x86 as ARM is python>= 3.11 only.
4040 # https://github.com/actions/setup-python/issues/855
4141 python-version : " 3.9"
42- dependency-set : minimum
42+ dependency-set : lowest-direct
4343 - os : windows-latest
4444 python-version : " 3.9"
45- dependency-set : minimum
45+ dependency-set : lowest-direct
4646 - os : ubuntu-latest
4747 python-version : " 3.13"
48- dependency-set : maximum
48+ dependency-set : highest
4949 - os : macos-latest
5050 python-version : " 3.13"
51- dependency-set : maximum
51+ dependency-set : highest
5252 - os : windows-latest
5353 python-version : " 3.13"
54- dependency-set : maximum
54+ dependency-set : highest
5555 runs-on : ${{ matrix.os }}
5656
5757 env :
7171 with :
7272 enable-cache : true
7373
74- - name : Generate requirements file
75- run : python scripts/generate_dependencies.py ${{ matrix.dependency-set }}
76-
7774 - name : Install dependencies
78- run : |
79- uv pip install --system ".[all]"
80- # onnx is required for onnx export tests
81- # we don't install all dev dependencies here for speed
82- uv pip install --system -r requirements.txt
83- uv pip install --system pytest psutil
84- # licensecheck is required for license checking
85- uv pip install --system licensecheck
86- # onnx is not supported on python 3.13 yet https://github.com/onnx/onnx/issues/6339
87- if [[ "${{ matrix.python-version }}" != "3.13" ]]; then
88- uv pip install --system onnx
89- fi
90- shell : bash
75+ run : uv sync --all-extras --group ci --resolution ${{ matrix.dependency-set }}
9176
9277 - name : Restore model cache
9378 id : restore-model-cache
@@ -105,12 +90,13 @@ jobs:
10590 env :
10691 HF_TOKEN : ${{ secrets.HF_TOKEN }}
10792 TABPFN_TOKEN : ${{ secrets.TABPFN_TOKEN }}
108- run : python scripts/download_all_models.py
93+ run : uv run --no-sync python scripts/download_all_models.py
10994
11095 - name : Check for forbidden licenses
11196 if : runner.os == 'MacOS' && matrix.python-version == '3.9'
97+ shell : bash
11298 run : |
113- licensecheck \
99+ uv run --no-sync licensecheck \
114100 --requirements-paths pyproject.toml \
115101 --only-licenses APACHE MIT BSD ISC PYTHON UNLICENSE UNKNOWN \
116102 --ignore-packages certifi "tabpfn*" \
@@ -122,13 +108,13 @@ jobs:
122108 env :
123109 TABPFN_EXCLUDE_DEVICES : mps
124110 run : |
125- FAST_TEST_MODE=1 pytest tests/
111+ FAST_TEST_MODE=1 uv run --no-sync pytest tests/
126112
127113 - name : Run Tests (Windows)
128114 if : runner.os == 'Windows'
129115 run : |
130116 $env:FAST_TEST_MODE = 1
131- pytest tests/
117+ uv run --no-sync pytest tests/
132118
133119 - name : Save model cache
134120 if : github.ref == 'refs/heads/main'
0 commit comments