Skip to content

Commit a376349

Browse files
committed
Update actions
1 parent 9541231 commit a376349

14 files changed

Lines changed: 786 additions & 5520 deletions

.github/pixi.lock

Lines changed: 656 additions & 5434 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/pixi.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ channels = ["conda-forge"]
33
platforms = ["linux-64", "osx-64", "win-64"]
44

55
[dependencies]
6-
python = "*"
7-
pytest = ">=9.0.0"
8-
# these should match pixi.toml
9-
geoarrow-pyarrow = ">=0.2.0"
10-
geopandas = ">=1.0.0"
11-
rich-click = ">=1.9.0"
12-
sedonadb = ">=0.3.0"
6+
python = ">=3.11.15,<3.15"
7+
pytest = ">=9.0.3,<10"
8+
# these should match the root pixi.toml
9+
geoarrow-pyarrow = ">=0.2.0,<0.3"
10+
geopandas = ">=1.1.3,<2"
11+
rich-click = ">=1.9.7,<2"
12+
sedonadb = ">=0.3.0,<0.4"
1313

1414
[tasks]
1515
test = "pytest ../tests"
@@ -24,17 +24,17 @@ py313 = { features = ["py313"] }
2424
py314 = { features = ["py314"] }
2525

2626
[feature.py311.dependencies]
27-
python = "3.11.*"
28-
sedonadb = ">=0.3.0"
27+
python = ">=3.14.4,<3.15"
28+
sedonadb = ">=0.3.0,<0.4"
2929

3030
[feature.py312.dependencies]
31-
python = "3.12.*"
32-
sedonadb = ">=0.3.0"
31+
python = ">=3.14.4,<3.15"
32+
sedonadb = ">=0.3.0,<0.4"
3333

3434
[feature.py313.dependencies]
35-
python = "3.13.*"
36-
sedonadb = ">=0.3.0"
35+
python = ">=3.14.4,<3.15"
36+
sedonadb = ">=0.3.0,<0.4"
3737

3838
[feature.py314.dependencies]
39-
python = "3.14.*"
40-
sedonadb = ">=0.3.0"
39+
python = ">=3.14.4,<3.15"
40+
sedonadb = ">=0.3.0,<0.4"

.github/workflows/coverage.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
# https://github.com/marketplace/actions/setup-pixi
21
name: Update Test Coverage
2+
33
on:
44
workflow_dispatch:
5-
# push:
6-
# branches: [ "main" ]
7-
# paths: [ "src/**" ]
5+
push:
6+
branches: [ "dev" ]
7+
paths: [ "src/**", "tests/**" ]
8+
89
jobs:
910
coverage:
1011
runs-on: ubuntu-latest
12+
1113
steps:
14+
15+
# https://github.com/actions/checkout
1216
- uses: actions/checkout@v6
1317
with:
1418
sparse-checkout: |
@@ -20,6 +24,8 @@ jobs:
2024
src
2125
tests
2226
sparse-checkout-cone-mode: false
27+
28+
# https://github.com/marketplace/actions/setup-pixi
2329
- uses: prefix-dev/setup-pixi@v0.9.4
2430
with:
2531
pixi-version: v0.67.2
@@ -28,12 +34,14 @@ jobs:
2834
activate-environment: true
2935
locked: false
3036
frozen: true
37+
3138
- name: Run coverage
3239
run: pixi run coverage
40+
3341
- name: Push changes
34-
run: |
35-
git config --local user.email "dev@corbelspatial.com"
36-
git config --local user.name "p-vdp"
42+
run: |
43+
git config user.name "github-actions[bot]"
44+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3745
git add ./docs/pytest_coverage.json
38-
git commit -m "GitHub Action: Update Test Coverage"
46+
git commit -m "Update Test Coverage"
3947
git push

.github/workflows/lint.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# https://github.com/marketplace/actions/setup-pixi
21
name: Lint Check
32
on:
43
workflow_dispatch:
54
push:
6-
branches: [ "main" ]
7-
paths: [ "src/**" ]
5+
branches: [ "main", "dev" ]
6+
paths: [ "src/**", "tests/**" ]
7+
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11+
1112
steps:
13+
# https://github.com/actions/checkout
1214
- uses: actions/checkout@v6
1315
with:
1416
sparse-checkout: |
@@ -19,6 +21,8 @@ jobs:
1921
src
2022
tests
2123
sparse-checkout-cone-mode: false
24+
25+
# https://github.com/marketplace/actions/setup-pixi
2226
- uses: prefix-dev/setup-pixi@v0.9.4
2327
with:
2428
pixi-version: v0.67.2

.github/workflows/pypi-publish.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,58 @@
1-
# https://github.com/pypa/gh-action-pypi-publish
2-
name: Upload Python Package to PyPI
1+
name: Upload Package to PyPI
32
on:
43
release:
54
types: [published]
5+
66
permissions:
77
contents: read
8+
89
jobs:
910
release-build:
1011
runs-on: ubuntu-latest
12+
1113
steps:
14+
# https://github.com/actions/checkout
1215
- uses: actions/checkout@v6
16+
17+
# https://github.com/actions/setup-python
1318
- uses: actions/setup-python@v6
1419
with:
1520
python-version: "3.x"
21+
1622
- name: Build release distributions
1723
run: |
1824
python -m pip install hatchling
1925
python -m hatchling build
26+
2027
- name: Upload distributions
28+
# https://github.com/actions/upload-artifact
2129
uses: actions/upload-artifact@v7
2230
with:
2331
name: release-dists
2432
path: dist/
33+
2534
pypi-publish:
2635
runs-on: ubuntu-latest
36+
2737
needs:
2838
- release-build
39+
2940
permissions:
3041
id-token: write
42+
3143
environment:
3244
name: pypi
45+
3346
steps:
3447
- name: Retrieve release distributions
35-
uses: actions/download-artifact@v4
48+
# https://github.com/actions/download-artifact
49+
uses: actions/download-artifact@v8
3650
with:
3751
name: release-dists
3852
path: dist/
53+
3954
- name: Publish release distributions to PyPI
55+
# https://github.com/pypa/gh-action-pypi-publish
4056
uses: pypa/gh-action-pypi-publish@release/v1
4157
with:
4258
packages-dir: dist/
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
branches: [ "main" ]
66
paths: [ "src/**" ]
77
jobs:
8-
test-on-prerelease:
8+
test-on-prerelease-python:
99
runs-on: ubuntu-latest
10+
11+
container: ghcr.io/corbel-spatial/here-be-dragons:next
12+
1013
steps:
14+
# https://github.com/actions/checkout
1115
- uses: actions/checkout@v6
1216
with:
1317
sparse-checkout: |
@@ -16,28 +20,27 @@ jobs:
1620
src
1721
tests
1822
sparse-checkout-cone-mode: false
19-
- run: |
20-
docker run --name tester --rm -id --mount type=bind,source=./,target=/root/checkout ghcr.io/corbel-spatial/here-be-dragons:next
21-
docker exec -w /root/checkout tester bash -c '
22-
23-
# install runtime dependencies from source
23+
24+
- name: Install dependencies
25+
run: |
2426
uv pip install --system \
2527
https://github.com/geopandas/pyogrio.git
2628
https://github.com/pandas-dev/pandas.git
2729
https://github.com/geopandas/geopandas.git
28-
29-
# build and install sedonadb from source
30-
uv pip install --system maturin[patchelf] pytest
30+
uv pip install --system maturin[patchelf] pytest
3131
uv venv --system-site-packages
32+
33+
- name: Build sources
34+
run: |
3235
source .venv/bin/activate
3336
git clone --depth 1 https://github.com/apache/sedona-db.git
3437
cd sedona-db/python/sedonadb
3538
maturin develop --release
3639
deactivate
3740
uv pip install --system .
38-
39-
# install and test giso
41+
42+
- name: Run tests
43+
run: |
4044
cd /root/checkout
4145
uv pip install --system .
4246
pytest ./tests -vv -s
43-
'

.github/workflows/pytest-linux.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# https://github.com/marketplace/actions/setup-pixi
21
name: Pytest - Linux
32
on:
43
workflow_dispatch:
@@ -13,6 +12,7 @@ jobs:
1312
matrix:
1413
environment: [ py311, py312, py313, py314 ]
1514
steps:
15+
# https://github.com/actions/checkout
1616
- uses: actions/checkout@v6
1717
with:
1818
sparse-checkout: |
@@ -23,6 +23,8 @@ jobs:
2323
src
2424
tests
2525
sparse-checkout-cone-mode: false
26+
27+
# https://github.com/marketplace/actions/setup-pixi
2628
- uses: prefix-dev/setup-pixi@v0.9.4
2729
with:
2830
pixi-version: v0.67.2

.github/workflows/pytest-macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
matrix:
1414
environment: [py311, py312, py313, py314]
1515
steps:
16+
# https://github.com/actions/checkout
1617
- uses: actions/checkout@v6
1718
with:
1819
sparse-checkout: |
@@ -23,7 +24,10 @@ jobs:
2324
src
2425
tests
2526
sparse-checkout-cone-mode: false
27+
2628
- run: brew install proj
29+
30+
# https://github.com/marketplace/actions/setup-pixi
2731
- uses: prefix-dev/setup-pixi@v0.9.4
2832
with:
2933
pixi-version: v0.67.2

.github/workflows/pytest-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
matrix:
1414
environment: [py311, py312, py313, py314]
1515
steps:
16+
# https://github.com/actions/checkout
1617
- uses: actions/checkout@v6
1718
with:
1819
sparse-checkout: |
@@ -23,6 +24,7 @@ jobs:
2324
src
2425
tests
2526
sparse-checkout-cone-mode: false
27+
# https://github.com/marketplace/actions/setup-pixi
2628
- uses: prefix-dev/setup-pixi@v0.9.4
2729
with:
2830
pixi-version: v0.67.2

.idea/giso.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)