Skip to content

Commit

Permalink
update min supported Python and testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jun 15, 2024
1 parent 261768a commit e5cab92
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 30 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ jobs:
matrix:
os: [ubuntu-latest]
environment-file:
- ci/envs/38-minimal.yaml
- ci/envs/39-latest.yaml
- ci/envs/310-minimal.yaml
- ci/envs/310-latest.yaml
- ci/envs/311-latest.yaml
- ci/envs/311-dev.yaml
- ci/envs/312-latest.yaml
- ci/envs/312-dev.yaml
include:
- environment-file: ci/envs/311-latest.yaml
os: macos-latest
- environment-file: ci/envs/311-latest.yaml
- environment-file: ci/envs/312-latest.yaml
os: macos-13 # Intel
- environment-file: ci/envs/312-latest.yaml
os: macos-14 # Apple Silicon
- environment-file: ci/envs/312-latest.yaml
os: windows-latest
defaults:
run:
Expand All @@ -46,16 +48,6 @@ jobs:

- name: Test pointpats
run: |
pytest -v --color yes --cov pointpats --cov-config .coveragerc --cov-append --cov-report term-missing --cov-report xml .
pytest -v --color yes --cov pointpats --cov-append --cov-report term-missing --cov-report xml .
- uses: codecov/codecov-action@v3

- name: Generate and publish the report
if: |
failure()
&& steps.status.outcome == 'failure'
&& github.event_name == 'schedule'
&& github.repository_owner == 'pysal'
uses: xarray-contrib/issue-from-pytest-log@v1
with:
log-path: pytest-log.jsonl
- uses: codecov/codecov-action@v4
4 changes: 2 additions & 2 deletions ci/envs/38-minimal.yaml → ci/envs/310-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.8
- python=3.10
- scipy=1.8
- numpy=1.21
- pandas=1.3
- matplotlib=3.4
- libpysal=4.5
# tests
- scikit-learn==1.2
- scikit-learn=1.2
- shapely
- geopandas
- pytest
Expand Down
6 changes: 0 additions & 6 deletions ci/envs/311-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ dependencies:
- pip
- pip:
- KDEpy
# for docs build action (this env only)
- nbsphinx
- numpydoc
- sphinx
- sphinxcontrib-bibtex
- sphinx_bootstrap_theme
2 changes: 1 addition & 1 deletion ci/envs/311-dev.yaml → ci/envs/312-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.11
- python=3.12
- numpy
- pandas
- matplotlib
Expand Down
8 changes: 7 additions & 1 deletion ci/envs/39-latest.yaml → ci/envs/312-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.9
- python=3.12
- scipy
- numpy
- pandas
Expand All @@ -19,3 +19,9 @@ dependencies:
- pip
- pip:
- KDEpy
# for docs build action (this env only)
- nbsphinx
- numpydoc
- sphinx
- sphinxcontrib-bibtex
- sphinx_bootstrap_theme
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.7"
requires-python = ">=3.10"
dependencies = [
"numpy",
"pandas",
Expand Down Expand Up @@ -71,7 +71,6 @@ line-length = 88
[tool.ruff]
line-length = 88
select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
target-version = "py39"
ignore = [
"B006",
"B008",
Expand Down

0 comments on commit e5cab92

Please sign in to comment.