Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
python-version: "3.12"
- name: Install GDAL
run: |
python -m pip install --upgrade pip
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL pyproj
environment-name: docs-env
create-args: >-
python=3.12
gdal
pyproj
-c conda-forge
cache-environment: true
- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
Expand Down
36 changes: 10 additions & 26 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,18 @@ jobs:
env:
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python
uses: conda-incubator/setup-miniconda@v3
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
auto-activate-base: true
python-version: ${{ matrix.config.py }}
channels: conda-forge,defaults
channel-priority: true
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Testing conda
run: |
conda info
conda list

- name: Install GDAL
run: |
conda install -c conda-forge mamba --yes
mamba install -c conda-forge gdal pyproj --yes
environment-name: test-env
create-args: >-
python=${{ matrix.config.py }}
gdal
pyproj
-c conda-forge
cache-environment: true

- name: Test GDAL installation
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ jobs:

env:
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
defaults:
run:
shell: bash -el {0}
steps:
- name: CHECKOUT CODE
uses: actions/checkout@v5
- name: SETUP PYTHON
uses: actions/setup-python@v6
uses: actions/checkout@v6
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
python-version: ${{ matrix.config.py }}
- name: Install GDAL
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL
environment-name: test-env
create-args: >-
python=${{ matrix.config.py }}
gdal
pyproj
-c conda-forge
cache-environment: true
- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ name: Windows build
jobs:
test-windows:
runs-on: windows-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v5
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v3
- uses: actions/checkout@v6
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
auto-activate-base: true
python-version: "3.12"
- name: Install GDAL
run: conda install -c conda-forge gdal --yes
environment-name: test-env
create-args: >-
python=3.12
gdal
pyproj
-c conda-forge
cache-environment: true
- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
args: ["--maxkb=500"]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
rev: 25.11.0
hooks:
- id: black-jupyter

Expand All @@ -27,6 +27,6 @@ repos:
]

- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
rev: 0.8.2
hooks:
- id: nbstripout