-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide testing support for Python 3.12 – drop support for {3.8, 3.9} (…
…#751) * update precommit * update CI env * update workflows * Python 312 support - drop 38/39 * update test for Python 312 pass (minor rounding) * update CI versions/syntax * proper dev install of shapely * martin suggestion - geos * matplotlib for esda * matplotlib for esda * stable -> latest * bash evaluator * bash evaluator [2] * not no-optional experssion * not no-optional expression [2] * not no-optional expression [3] * remove section from README
- Loading branch information
Showing
20 changed files
with
120 additions
and
172 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,32 +17,24 @@ | |
required: false | ||
|
||
jobs: | ||
linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
- uses: pre-commit/[email protected] | ||
|
||
testing: | ||
needs: linting | ||
name: ${{ matrix.os }}, ${{ matrix.environment-file }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
environment-file: | ||
- ci/38-BASE.yaml | ||
- ci/39-BASE.yaml | ||
- ci/310-BASE.yaml | ||
- ci/311-BARE.yaml | ||
- ci/311-BASE.yaml | ||
- ci/311-DEV.yaml | ||
- ci/310-oldest.yaml | ||
- ci/310-no-optional.yaml | ||
- ci/310-latest.yaml | ||
- ci/311-latest.yaml | ||
- ci/312-latest.yaml | ||
- ci/312-dev.yaml | ||
include: | ||
- environment-file: ci/311-BASE.yaml | ||
- environment-file: ci/312-latest.yaml | ||
os: macos-latest | ||
- environment-file: ci/311-BASE.yaml | ||
- environment-file: ci/312-latest.yaml | ||
os: windows-latest | ||
fail-fast: false | ||
|
||
|
@@ -53,19 +45,14 @@ | |
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags. | ||
|
||
- name: setup micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ${{ matrix.environment-file }} | ||
micromamba-version: 'latest' | ||
channel-priority: 'flexible' | ||
|
||
- name: install bleeding edge libpysal & esda (Ubuntu / Python 3.11) | ||
run: | | ||
pip install git+https://github.com/pysal/libpysal.git@main | ||
pip install git+https://github.com/pysal/esda.git@main | ||
if: matrix.os == 'ubuntu-latest' && contains(matrix.environment-file, 'DEV') | ||
|
||
- name: environment info | ||
run: | | ||
|
@@ -74,11 +61,22 @@ | |
- name: spatial versions (if geopandas is installed) | ||
run: 'python -c "import geopandas; geopandas.show_versions();"' | ||
if: contains(matrix.environment-file, 'DEV') || contains(matrix.environment-file, 'BASE') | ||
if: contains(matrix.environment-file, 'no-optional') != true | ||
|
||
- name: run tests | ||
run: | | ||
pytest spaghetti -v -r a -n auto --cov spaghetti --doctest-modules --cov-report xml --color yes --cov-append --cov-report term-missing --timeout 60 | ||
pytest \ | ||
spaghetti \ | ||
-v \ | ||
-r a \ | ||
-n auto \ | ||
--color yes \ | ||
--cov spaghetti \ | ||
--cov-append \ | ||
--cov-report term-missing \ | ||
--cov-report xml \ | ||
--doctest-modules \ | ||
--timeout 60 | ||
- name: codecov | ||
uses: codecov/codecov-action@v3 | ||
|
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: test | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.10 | ||
# required | ||
- esda=2.1 | ||
- libpysal=4.6 | ||
- numpy=1.22 | ||
- pandas=1.4 | ||
- pip | ||
- rtree=1.0 | ||
- scipy=1.8 | ||
# testing | ||
- codecov | ||
- pytest | ||
- pytest-cov | ||
- pytest-timeout | ||
- pytest-xdist | ||
# optional | ||
- geopandas=0.12 | ||
- shapely=2.0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: test | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.12 | ||
# required | ||
- geos # for shapely | ||
- matplotlib # for esda | ||
- numpy | ||
- pip | ||
- rtree | ||
- watermark | ||
# testing | ||
- codecov | ||
- pytest | ||
- pytest-cov | ||
- pytest-timeout | ||
- pytest-xdist | ||
- pip: | ||
# dev versions of packages | ||
- --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple | ||
- pandas | ||
- scipy | ||
- git+https://github.com/pysal/esda.git@main | ||
- git+https://github.com/geopandas/geopandas.git@main | ||
- git+https://github.com/pysal/libpysal.git@main | ||
- git+https://github.com/shapely/shapely.git@main |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.