Skip to content

Commit 6a2b0d8

Browse files
authored
CI: Use uv for faster pip installs, fix venv issues in latest GDAL (#438)
1 parent 3cb7f8e commit 6a2b0d8

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/docker-gdal.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,28 @@ jobs:
3333
steps:
3434
- name: Install packages
3535
run: |
36-
apt-get update && apt-get install -y git python3-pip
36+
apt-get update && apt-get install -y build-essential git python3-dev
3737
3838
- uses: actions/checkout@v4
3939

40+
- name: Create virtual environment
41+
run: |
42+
curl -LsSf https://astral.sh/uv/install.sh | sh
43+
. $HOME/.cargo/env
44+
uv venv .venv
45+
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
46+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
47+
4048
- name: Install Python Dependencies
4149
run: |
42-
python3 -m pip install --no-cache-dir -U pip wheel
43-
python3 -m pip install --no-cache-dir -e .[dev,test,geopandas]
50+
uv pip install pip wheel
51+
uv pip install -e .[dev,test,geopandas]
4452
4553
- name: Install pyarrow
4654
# GDAL>=3.6 required to use Arrow API
4755
if: matrix.container != 'osgeo/gdal:ubuntu-small-3.5.3' && matrix.container != 'osgeo/gdal:ubuntu-small-3.4.3'
4856
run: |
49-
python3 -m pip install pyarrow
57+
uv pip install pyarrow
5058
5159
- name: Test with pytest
5260
run: |

0 commit comments

Comments
 (0)