Skip to content

Commit 23453e3

Browse files
committed
putting examples on distances module
2 parents a354940 + e2aaaac commit 23453e3

File tree

6 files changed

+282
-299
lines changed

6 files changed

+282
-299
lines changed

.github/workflows/code_coverage.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ jobs:
1717
python-version: 3.7
1818
- name: Install dependencies
1919
run: |
20-
python -m pip install --upgrade pip
21-
pip install pytest coverage geopandas .
20+
make ci
2221
- name: Coverage
2322
run: |
24-
coverage run -m pytest
23+
make coverage
2524
coverage xml -o "coverage.xml"
2625
- name: Codacy Coverage Reporter
2726
uses: codacy/codacy-coverage-reporter-action@master

.github/workflows/lint_and_test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ jobs:
1313
python-version: 3.7
1414
- name: Install dependencies
1515
run: |
16-
python -m pip install --upgrade pip
17-
pip install flake8 pep8-naming .
16+
make ci
1817
- name: Lint
1918
working-directory: ${{ github.workspace }}
2019
run: |
21-
flake8
20+
make lint
2221
test:
2322
name: Code Testing
2423
runs-on: ubuntu-latest
@@ -35,4 +34,4 @@ jobs:
3534
- name: Test
3635
working-directory: ${{ github.workspace }}
3736
run: |
38-
pytest --verbose
37+
make test

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ jobs:
1717
python-version: 3.7
1818
- name: Install dependencies
1919
run: |
20-
python -m pip install --upgrade pip
21-
pip install flake8 pep8-naming pytest geopandas .
20+
make ci
2221
- name: Lint and Test
2322
run: |
24-
flake8
25-
pytest
23+
make lint
24+
make test
2625
- name: Build
2726
run: |
2827
pip install setuptools wheel twine

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ dev:
1010
pip install -r requirements-dev.txt
1111
pre-commit install
1212

13+
ci:
14+
python -m pip install --upgrade pip
15+
pip install flake8 pep8-naming flake8-bugbear flake8-docstrings pytest coverage geopandas
16+
pip install .
17+
1318
clean:
1419
rm -rf `find . -type d -name .pytest_cache`
1520
rm -rf `find . -type d -name __pycache__`
@@ -18,6 +23,9 @@ clean:
1823
rm -f .coverage
1924

2025
test: clean
26+
pytest
27+
28+
coverage: clean
2129
coverage run -m pytest
2230
coverage report
2331

0 commit comments

Comments
 (0)