Skip to content

Commit c0eb9cc

Browse files
committed
Add uv to GitHub Actions
1 parent 490317d commit c0eb9cc

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/ubuntu-uv.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Linux uv build
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
template:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v2
23+
with:
24+
version: "0.4.12"
25+
enable-cache: true
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
run: uv python install ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: uv sync --python ${{ matrix.python-version }} --frozen
32+
33+
- name: Install optional dependencies
34+
run: |
35+
uv pip install pytest
36+
uv pip install -r requirements_dev.txt
37+
38+
- name: Test import
39+
run: python -c "import leafmap; print('leafmap import successful')"
40+
41+
- name: Running pytest
42+
run: |
43+
pytest . --verbose

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dynamic = [
1010
]
1111
description = "A Python package for geospatial analysis and interactive mapping in a Jupyter environment."
1212
readme = "README.md"
13-
requires-python = ">=3.8"
13+
requires-python = ">=3.9"
1414
license = {text = "MIT license"}
1515
keywords = ["leafmap"]
1616
classifiers = [
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.10",
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
]
2829
authors = [{name = "Qiusheng Wu", email = "giswqs@gmail.com"}]
2930

0 commit comments

Comments
 (0)