File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,16 +49,17 @@ jobs:
4949 with :
5050 # Version range or exact version of Python to use, using SemVer's version range syntax. Reads from .python-version if unset.
5151 python-version : " 3.10"
52+ - name : Install uv
53+ uses : astral-sh/setup-uv@v4
5254 - name : Install ONNXScript
5355 run : |
5456 # Install dependencies
55- python -m pip install --upgrade pip
56- python -m pip install --upgrade setuptools
57- python -m pip install -r requirements-dev.txt
57+ uv pip install --system setuptools
58+ uv pip install --system -r requirements-dev.txt
5859 # FIXME: numpy 2.2 has some typing changes that break the mypy CI but it's otherwise fine
59- python -m pip install "numpy<2.2"
60+ uv pip install --system "numpy<2.2"
6061 # Install packages
61- python -m pip install -e .
62+ uv pip install --system -e .
6263 lintrunner init
6364 - name : Run lintrunner on all files
6465 run : |
Original file line number Diff line number Diff line change 6262 uses : actions/setup-python@v6
6363 with :
6464 python-version : ${{ matrix.python-version }}
65+ - name : Install uv
66+ uses : astral-sh/setup-uv@v4
6567 - name : Install nox
66- run : python -m pip install nox
68+ run : uv pip install --system nox
6769 - name : Pull Test Data
6870 run : git lfs pull
6971 - name : Run tests
@@ -100,19 +102,19 @@ jobs:
100102 uses : actions/setup-python@v6
101103 with :
102104 python-version : " 3.10"
103- cache : pip
104- cache-dependency-path : " **/requirements-dev.txt "
105+ - name : Install uv
106+ uses : astral-sh/setup-uv@v4
105107 - name : Install dependencies
106108 run : |
107- python -m pip install --upgrade pip setuptools wheel
108- python -m pip install -r requirements-dev.txt
109+ uv pip install --system setuptools wheel
110+ uv pip install --system -r requirements-dev.txt
109111 - name : Versions
110112 run : |
111113 pip list | grep numpy
112114 pip list | grep onnx
113115 pip list | grep torch
114116 - name : Install package
115- run : pip install .
117+ run : uv pip install --system .
116118 - name : Build documentation
117119 run : python -m sphinx docs dist/html
118120
Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ jobs:
3333 with :
3434 python-version : " 3.10"
3535 - uses : actions/checkout@v5
36+ - name : Install uv
37+ uses : astral-sh/setup-uv@v4
3638 - name : Install dependencies
3739 run : |
38- python -m pip install --upgrade pip setuptools wheel
39- python -m pip install -r requirements-dev.txt
40+ uv pip install --system setuptools wheel
41+ uv pip install --system -r requirements-dev.txt
4042 - name : Install package
41- run : pip install .
43+ run : uv pip install --system .
4244 - name : Build documentation
4345 run : python -m sphinx docs dist/html
4446 - name : Upload documentation archive
You can’t perform that action at this time.
0 commit comments