Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
strategy:
matrix:
os: ['ubuntu-latest']
environment-file: [ci/312.yml]
environment-file: [ci/314-latest.yaml]
experimental: [false]
defaults:
run:
shell: bash -l {0}

steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for all branches and tags.

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v3
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
Expand Down Expand Up @@ -54,4 +54,4 @@
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
force: true
33 changes: 12 additions & 21 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

on:
push:
branches:
- '*'
branches: [main]
pull_request:
branches:
- '*'
- '*'
schedule:
- cron: '59 23 * * *'
workflow_dispatch:
Expand All @@ -25,16 +24,18 @@
matrix:
os: [ubuntu-latest]
environment-file: [
ci/312.yml,
ci/313.yml,
ci/314.yml,
ci/312-oldest.yaml,
ci/312-latest.yaml,
ci/313-latest.yaml,
ci/314-latest.yaml,
ci/314-dev.yaml,
]
include:
- environment-file: ci/314.yml
- environment-file: ci/314-latest.yaml
os: macos-15-intel # Intel
- environment-file: ci/314.yml
- environment-file: ci/314-latest.yaml
os: macos-latest # Apple Silicon
- environment-file: ci/314.yml
- environment-file: ci/314-latest.yaml
os: windows-latest
fail-fast: false

Expand All @@ -49,7 +50,7 @@
fetch-depth: 0 # Fetch all history for all branches and tags.

- name: setup micromamba
uses: mamba-org/setup-micromamba@v2
uses: mamba-org/setup-micromamba@v3
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
Expand Down Expand Up @@ -77,18 +78,8 @@
--cov-report xml

- name: codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: segregation-codecov

- 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
4 changes: 2 additions & 2 deletions .github/workflows/upload_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: "3.x"

Expand Down
9 changes: 4 additions & 5 deletions ci/314.yml → ci/312-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.14
- geopandas>=0.9
- python=3.12
- geopandas
- joblib
- libpysal
- mapclassify
- matplotlib
- numba
- numpy
- pandarm
- pandas
- pip
- pyproj
- quilt3
- scikit-learn
- scipy
- seaborn
- tqdm
- numba
- pyproj >=3

# testing, etc
- codecov
Expand All @@ -27,4 +27,3 @@ dependencies:
- pytest-cov
- pytest-xdist
- twine

29 changes: 29 additions & 0 deletions ci/312-oldest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test
channels:
- conda-forge
dependencies:
- python=3.12
- geopandas=1.1.0
- joblib=1.5.0
- libpysal=4.12.1
- mapclassify=2.8
- matplotlib=3.10
- numba=0.60
- numpy=2.0.0
- pandarm
- pandas=2.3.0
- pip
- pyproj
- quilt3
- scikit-learn=1.5.0
- scipy=1.14.0
- seaborn
- tqdm

# testing, etc
- codecov
- pytest
- pytest-mpl
- pytest-cov
- pytest-xdist
- twine
6 changes: 3 additions & 3 deletions ci/313.yml → ci/313-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ channels:
- conda-forge
dependencies:
- python=3.13
- geopandas>=0.9
- geopandas
- joblib
- libpysal
- mapclassify
- matplotlib
- numba
- numpy
- pandarm
- pandas
- pip
- pyproj
- quilt3
- scikit-learn
- scipy
- seaborn
- tqdm
- numba
- pyproj >=3

# testing, etc
- codecov
Expand Down
36 changes: 36 additions & 0 deletions ci/314-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: test
channels:
- conda-forge
dependencies:
- python=3.14
- pandarm
- pip
- numba

# testing, etc
- codecov
- pytest
- pytest-mpl
- pytest-cov
- pytest-xdist
- twine

- pip:
# dev versions of packages
- --pre \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--extra-index-url https://pypi.org/simple
- joblib
- matplotlib
- numpy
- pandas
- pyproj
- quilt3
- scikit-learn
- scipy
- seaborn
- statsmodels
- tqdm
- git+https://github.com/geopandas/geopandas.git@main
- git+https://github.com/pysal/libpysal.git
- git+https://github.com/pysal/mapclassify.git
11 changes: 5 additions & 6 deletions ci/312.yml → ci/314-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.12
- geopandas>=0.9
- python=3.14
- geopandas
- joblib
- libpysal
- mapclassify
- matplotlib
- numba
- numpy
- pandarm
- pandas
- pip
- pyproj
- quilt3
- scikit-learn
- scipy
- seaborn
- tqdm
- numba
- pyproj >=3

# testing, etc
- codecov
Expand All @@ -38,5 +38,4 @@ dependencies:
- sphinx-gallery
- sphinxcontrib-bibtex
- sphinx_bootstrap_theme
- watermark
- black
- watermark
10 changes: 5 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: segregation
channels:
- conda-forge
dependencies:
- python>=3.12
- geopandas>=0.9
- python
- geopandas
- joblib
- libpysal
- mapclassify
- matplotlib
- numba
- numpy
- pandarm
- pandas
- pip
- pyproj >=3
- scikit-learn
- scipy
- seaborn
- tqdm
- numba
- pyproj >=3
- tqdm
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ classifiers = [
]
requires-python = ">=3.12"
dependencies = [
"geopandas>=0.9",
"joblib",
"libpysal",
"mapclassify",
"matplotlib",
"numpy",
"pandas",
"scikit-learn>=0.21.3",
"scipy",
"geopandas>=1.1.0",
"joblib>=1.5.0",
"libpysal>=4.12.1",
"mapclassify>=2.8",
"matplotlib>=3.10",
"numba>=0.60",
"numpy>=2.0.0",
"pandas>=2.3.0",
"pyproj>=3",
"scikit-learn>=1.5.0",
"scipy>=1.14.0",
"seaborn",
"tqdm",
"numba",
"pyproj>=3"
]

[project.urls]
Expand Down
Loading