Skip to content

Commit b5b05d2

Browse files
authored
Merge pull request #161 from knaaptime/2.0
2.0 refactor
2 parents 2fbc439 + fea1117 commit b5b05d2

File tree

616 files changed

+113212
-9283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

616 files changed

+113212
-9283
lines changed

.ci/37.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
dependencies:
55
- python=3.7
66
- pandas
7-
- geopandas>=0.7
7+
- geopandas>=0.9
88
- matplotlib
99
- scikit-learn
1010
- seaborn
@@ -21,4 +21,7 @@ dependencies:
2121
- tqdm
2222
- pandana
2323
- urbanaccess
24-
- mapclassify
24+
- mapclassify
25+
- pygeos
26+
- quilt3
27+
- deprecation

.ci/38.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
dependencies:
55
- python=3.8
66
- pandas
7-
- geopandas>=0.7
7+
- geopandas>=0.9
88
- matplotlib
99
- scikit-learn
1010
- seaborn
@@ -21,4 +21,7 @@ dependencies:
2121
- tqdm
2222
- pandana
2323
- urbanaccess
24-
- mapclassify
24+
- mapclassify
25+
- pygeos
26+
- quilt3
27+
- deprecation

.ci/39.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
dependencies:
55
- python=3.9
66
- pandas
7-
- geopandas>=0.7
7+
- geopandas>=0.9
88
- matplotlib
99
- scikit-learn
1010
- seaborn
@@ -28,3 +28,6 @@ dependencies:
2828
- sphinx_bootstrap_theme
2929
- numpydoc
3030
- mapclassify
31+
- pygeos
32+
- quilt3
33+
- deprecation

.github/workflows/unittests.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,40 @@
1717
timeout-minutes: 90
1818
strategy:
1919
matrix:
20-
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
20+
os: [ubuntu-latest, macos-latest, windows-latest]
2121
environment-file: [.ci/37.yml, .ci/38.yml, .ci/39.yml]
2222
experimental: [false]
23-
defaults:
24-
run:
25-
shell: bash -l {0}
2623
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/cache@v2
29-
env:
30-
CACHE_NUMBER: 0
31-
with:
32-
path: ~/conda_pkgs_dir
33-
key: ${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles(matrix.environment-file) }}
34-
- uses: conda-incubator/setup-miniconda@v2
24+
- name: checkout repo
25+
uses: actions/checkout@v2
26+
27+
- name: setup micromamba
28+
uses: mamba-org/provision-with-micromamba@main
3529
with:
36-
miniconda-version: 'latest'
37-
mamba-version: '*'
38-
channels: conda-forge
39-
channel-priority: true
40-
auto-update-conda: false
41-
auto-activate-base: false
42-
environment-file: ${{ matrix.environment-file }}
43-
activate-environment: test
44-
use-only-tar-bz2: true
45-
- run: conda info --all
46-
- run: conda list
47-
- run: conda config --show-sources
48-
- run: conda config --show
49-
- run: pip install -e . --no-deps --force-reinstall
50-
- name: Pytest
30+
environment-file: ${{ matrix.environment-file }}
31+
micromamba-version: 'latest'
32+
33+
- name: reinstall segregation - bash
34+
shell: bash -l {0}
35+
run: pip install -e . --no-deps --force-reinstall
36+
if: matrix.os != 'windows-latest'
37+
38+
- name: reinstall segregation - powershell
39+
shell: powershell
40+
run: pip install -e . --no-deps --force-reinstall
41+
if: matrix.os == 'windows-latest'
42+
43+
- name: run pytest - bash
44+
shell: bash -l {0}
45+
run: pytest -v segregation --cov=segregation --cov-report=xml
46+
if: matrix.os != 'windows-latest'
47+
48+
- name: run pytest - powershell
49+
shell: powershell
5150
run: pytest -v segregation --cov=segregation --cov-report=xml
52-
- name: codecov (${{ matrix.os }}, ${{ matrix.environment-file }})
51+
if: matrix.os == 'windows-latest'
52+
53+
- name: codecov
5354
uses: codecov/codecov-action@v1
5455
with:
5556
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 2 deletions

docs/_build/doctrees/api.doctree

75.9 KB
Binary file not shown.
9.61 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)