-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (36 loc) · 932 Bytes
/
Copy pathpython-tests.yml
File metadata and controls
46 lines (36 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Python Unit Tests with uv
permissions:
contents: read
pull-requests: write
on:
push:
branches: [main]
pull_request:
jobs:
uv-run-pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
container:
image: osgeo/gdal:ubuntu-small-3.6.3
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install build tools
run: |
apt-get update
apt-get install -y \
python3 python3-pip python3-venv \
build-essential \
libgeos-dev \
libproj-dev
- name: Install uv
run: pip3 install uv
- name: Sync environment with uv
run: uv sync --group dev
- name: Run tests with pytest
run: uv run pytest