fix: drivers have been separated out of the gdal conda, bump min python to 3.10 #1320
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
DOCKER_REGISTRY: ghcr.io | |
DOCKER_IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
standard: | |
name: Standard | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update | |
run: ./scripts/update | |
- name: Test | |
run: ./scripts/test | |
extra-requires: | |
name: Extra requires | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install with extra_requires | |
run: pip install .[s3,validate,dev] | |
- name: Test | |
run: ./scripts/test | |
minimum-versions: | |
name: Minimum versions | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install the package | |
run: pip install .[dev] | |
- name: Install the minimum requirements | |
run: scripts/install-min-requirements | |
- name: Test | |
run: scripts/test | |
pre-release-versions: | |
name: Pre-release versions | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update | |
run: scripts/update | |
- name: Install pre-release versions of rasterio and pystac | |
run: pip install -U --pre pystac rasterio --no-binary rasterio | |
- name: Run tests | |
run: scripts/test | |
docker: | |
name: Docker | |
needs: | |
- standard | |
- extra-requires | |
- minimum-versions | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.DOCKER_REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta main | |
id: meta-main | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }} | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
- name: Build and push main | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: docker/Dockerfile | |
target: main | |
# Only push docker images if the event is a push to `main` | |
push: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
tags: ${{ steps.meta-main.outputs.tags }} | |
labels: ${{ steps.meta-main.outputs.labels }} | |
- name: Docker meta dev | |
id: meta-dev | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }} | |
flavor: | | |
suffix=-dev | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
- name: Build and push dev | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: docker/Dockerfile | |
target: dev | |
# Only push docker images if the event is a push to `main` | |
push: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
tags: ${{ steps.meta-dev.outputs.tags }} | |
labels: ${{ steps.meta-dev.outputs.labels }} |