Skip to content

Commit 5e94cb1

Browse files
Enhance CI workflow by adding cache restoration and updating uv installation steps
1 parent def609d commit 5e94cb1

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,32 @@ jobs:
8181
with:
8282
python-version: '3.11'
8383

84+
- name: Restore global uv cache
85+
id: cache-restore
86+
uses: actions/cache/restore@v4
87+
with:
88+
path: |
89+
~/.cache/uv
90+
~/.local/share/uv
91+
.venv
92+
key: uv-main-${{ hashFiles('uv.lock') }}
93+
restore-keys: |
94+
uv-main-
95+
96+
- name: Install uv
97+
uses: astral-sh/setup-uv@v6
98+
with:
99+
version: "0.8.4"
100+
python-version: "3.13"
101+
enable-cache: false
102+
84103
- name: Install dependencies
85-
run: |
86-
sudo apt-get update
87-
sudo apt-get install -y proj-bin gdal-bin libgdal-dev
88-
python -m pip install --upgrade pip
89-
pip install -e ".[dev,test]" --only-binary=:all:
104+
run: uv sync --group dev --group test
90105

91106
- name: Run network tests
92107
run: |
93108
python -m pytest eopf_geozarr/tests/ -v --tb=short -m "network"
109+
94110
security:
95111
runs-on: ubuntu-latest
96112
steps:

0 commit comments

Comments
 (0)