@@ -31,11 +31,13 @@ jobs:
3131 - name : Install Python
3232 uses : actions/setup-python@v5
3333 with :
34- python-version : " 3.11 "
34+ python-version : " 3.12 "
3535 - name : Install dependencies
3636 run : |
37- python -m pip install --upgrade pip
38- pip install ruff
37+ python -m pip install uv
38+ uv venv
39+ source .venv/bin/activate
40+ uv sync
3941 # Update output format to enable automatic inline annotations.
4042 - name : Run Ruff
4143 run : |
7880 with :
7981 toolchain : stable
8082
81- - name : Upgrade pip
82- run : python -m pip install --upgrade pip
83-
84- - name : Install maturin
85- run : pip install maturin==1.5.1
86-
8783 - run : rm LICENSE.txt
8884 - name : Download LICENSE.txt
8985 uses : actions/download-artifact@v4
9793 version : " 27.4"
9894 repo-token : ${{ secrets.GITHUB_TOKEN }}
9995
96+ - name : Install dependencies and build
97+ run : |
98+ python -m pip install uv
99+ uv venv
100+ source .venv/bin/activate
101+ uv sync
102+
100103 - name : Build Python package
101104 run : maturin build --release --strip --features substrait
102105
@@ -136,12 +139,6 @@ jobs:
136139 with :
137140 toolchain : stable
138141
139- - name : Upgrade pip
140- run : python -m pip install --upgrade pip
141-
142- - name : Install maturin
143- run : pip install maturin==1.5.1
144-
145142 - run : rm LICENSE.txt
146143 - name : Download LICENSE.txt
147144 uses : actions/download-artifact@v4
@@ -155,6 +152,13 @@ jobs:
155152 version : " 27.4"
156153 repo-token : ${{ secrets.GITHUB_TOKEN }}
157154
155+ - name : Install dependencies and build
156+ run : |
157+ python -m pip install uv
158+ uv venv
159+ source .venv/bin/activate
160+ uv sync
161+
158162 - name : Build Python package
159163 run : |
160164 maturin build --release --strip --features substrait
0 commit comments