Skip to content

Commit

Permalink
Add Python 3.11 & 3.12 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
agrenott committed Nov 17, 2023
1 parent 9118906 commit 14daf44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pythonpackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
platform: [ubuntu-latest, macos-latest] #, windows-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -26,9 +26,10 @@ jobs:
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
miniforge-version: latest
- name: Install dependencies
run: |
conda install gdal
conda install -c conda-forge gdal
python -m pip install --upgrade pip hatch
- name: Test with coverage with all optional dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Python: 3.9, 3.10](https://img.shields.io/badge/python-3.9%20%7C%203.10-blue)](https://www.python.org)
[![Python: 3.9, 3.10, 3.11, 3.12](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)](https://www.python.org)
![GitHub](https://img.shields.io/github/license/agrenott/pyhgtmap)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/agrenott/pyhgtmap/pythonpackage.yaml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ keywords = ["osm", "OpenStreetMap", "countour", "SRTM", "elevation"]
license = "GPL-2.0-or-later"
name = "pyhgtmap"
readme = "README.md"
requires-python = ">=3.9"

[project.optional-dependencies]
geotiff = [
Expand Down Expand Up @@ -91,7 +92,7 @@ test_cov = [
typing = "mypy {args}"

[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10"]
python = ["3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.geotiff]
# Env for optional geotiff dependencies
Expand Down

0 comments on commit 14daf44

Please sign in to comment.