Skip to content

Commit

Permalink
👷 NEP29: Run Continuous Integration on Python 3.11 (#89)
Browse files Browse the repository at this point in the history
Run Continuous Integration tests and workflows on Python 3.11. Need to bump pyproj, numpy, pandas, rasterio, fiona, pyogrio, toolz and shapely (plus a few others) to get versions with Python 3.11 wheels.

* ⬆️ Bump pyproj from 3.3.1 to 3.4.1

Bumps [pyproj](https://github.com/pyproj4/pyproj) from 3.3.1 to 3.4.1.
- [Release notes](https://github.com/pyproj4/pyproj/releases)
- [Changelog](https://github.com/pyproj4/pyproj/blob/main/docs/history.rst)
- [Commits](pyproj4/pyproj@3.3.1...3.4.1)

* ⬆️ Bump numpy from 1.22.4 to 1.23.5

Bumps [numpy](https://github.com/numpy/numpy) from 1.22.4 to 1.23.5.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.22.4...v1.23.5)

* ⬆️ Bump pandas from 1.4.2 to 1.5.3

Bumps [pandas](https://github.com/pandas-dev/pandas) from 1.4.2 to 1.5.3.
- [Release notes](https://github.com/pandas-dev/pandas/releases)
- [Changelog](https://github.com/pandas-dev/pandas/blob/main/RELEASE.md)
- [Commits](pandas-dev/pandas@v1.4.2...v1.5.3)

* ⬆️ Bump rasterio from 1.3.2 to 1.3.6

Bumps [rasterio](https://github.com/rasterio/rasterio) from 1.3.0 to 1.3.6.
- [Release notes](https://github.com/rasterio/rasterio/releases)
- [Changelog](https://github.com/rasterio/rasterio/blob/main/CHANGES.txt)
- [Commits](rasterio/rasterio@1.3.0...1.3.6)

* ⬆️ Bump fiona from 1.8.21 to 1.9.1

Bumps [fiona](https://github.com/Toblerity/Fiona) from 1.8.21 to 1.9.1.
- [Release notes](https://github.com/Toblerity/Fiona/releases)
- [Changelog](https://github.com/Toblerity/Fiona/blob/master/CHANGES.txt)
- [Commits](Toblerity/Fiona@1.8.21...1.9.1)

* ⬆️ Bump pyogrio from 0.4.0 to 0.5.1

Bumps [pyogrio](https://github.com/geopandas/pyogrio) from 0.4.0 to 0.5.1.
- [Release notes](https://github.com/geopandas/pyogrio/releases)
- [Changelog](https://github.com/geopandas/pyogrio/blob/v0.4.0/CHANGES.md)
- [Commits](geopandas/pyogrio@v0.4.0...v0.5.1)

* ⬆️ Bump toolz from 0.11.2 to 0.12.0

Bumps [toolz](https://github.com/pytoolz/toolz) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/pytoolz/toolz/releases)
- [Changelog](https://github.com/pytoolz/toolz/blob/master/release-notes)
- [Commits](pytoolz/toolz@0.11.2...0.12.0)

Fixes `AttributeError: 'TlzSpec' object has no attribute '_uninitialized_submodules'`, xref pytoolz/toolz#533

* ⬆️ Bump shapely from 1.8.2 to 2.0.1

Bumps [shapely](https://github.com/shapely/shapely) from 1.8.2 to 2.0.1.
- [Release notes](https://github.com/shapely/shapely/releases)
- [Changelog](https://github.com/shapely/shapely/blob/2.0.1/CHANGES.txt)
- [Commits](shapely/shapely@1.8.2...2.0.1)

* 👷 NEP29: Run Continuous Integration on Python 3.11

Bumps [python](https://github.com/python/cpython) from 3.10.10 to 3.11.2.
  - [Release notes](https://github.com/python/cpython/releases/tag/v3.11.2)
  - [Changelog](https://docs.python.org/3/whatsnew/3.11.html)
  - [Commits](python/cpython@v3.10.10...v3.11.2)

* 🚩 Skip Ubuntu Python 3.11 CI tests for draft PRs

Conserve GitHub Actions Continuous Integration resources when a Pull Request is in draft mode.
  • Loading branch information
weiji14 committed Mar 17, 2023
1 parent fc14f47 commit 123ed18
Show file tree
Hide file tree
Showing 5 changed files with 258 additions and 255 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -26,7 +26,7 @@ A clear and concise description of what you expected to happen.

**System details (please complete the following information):**
- OS: [e.g. Linux, macOS, Windows]
- Python Version [e.g. 3.10]
- Python Version [e.g. 3.11]

**Additional context**
Add any other context about the problem here.
15 changes: 10 additions & 5 deletions .github/workflows/ci-tests.yml
@@ -1,5 +1,5 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Tests

Expand All @@ -20,20 +20,25 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
python-version: ["3.8", "3.10", "3.11"]
os: [ubuntu-22.04]
# Is it a draft Pull Request (true or false)?
isDraft:
- ${{ github.event.pull_request.draft }}
# Exclude Ubuntu + Python 3.8 job for draft PRs
# Exclude Ubuntu + Python 3.8 and 3.11 jobs for draft PRs
exclude:
- python-version: '3.8'
isDraft: true
# Only install optional packages on Ubuntu-22.04/Python 3.10
- python-version: '3.11'
isDraft: true
# Only install optional packages on Ubuntu-22.04/Python 3.10 and 3.11
include:
- os: 'ubuntu-22.04'
python-version: '3.10'
extra-packages: '--extras "raster spatial stac vector"'
- os: 'ubuntu-22.04'
python-version: '3.11'
extra-packages: '--extras "raster stac vector"'

steps:
# Checkout current git repository
Expand All @@ -42,7 +47,7 @@ jobs:

# Install Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
with:
python-version: ${{ matrix.python-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Expand Up @@ -32,10 +32,10 @@ jobs:
# fetch all history so that poetry-dynamic-versioning works
fetch-depth: 0

- name: Set up Python 3.10
uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6
- name: Set up Python 3.11
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
with:
python-version: '3.10'
python-version: '3.11'

- name: Install Poetry and dynamic-versioning plugin
run: |
Expand Down

0 comments on commit 123ed18

Please sign in to comment.