Skip to content

Organise imports

Organise imports #16

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: pytest
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install GDAL
run: |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install gdal-bin libgdal-dev
- name: "Install uv"
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.4.15"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Install the project
run: uv sync --extra ci
- name: Run tests
run: uv run pytest tests