File tree Expand file tree Collapse file tree 6 files changed +282
-299
lines changed
Expand file tree Collapse file tree 6 files changed +282
-299
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
3534 - name : Test
3635 working-directory : ${{ github.workspace }}
3736 run : |
38- pytest --verbose
37+ make test
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+
1318clean :
1419 rm -rf ` find . -type d -name .pytest_cache`
1520 rm -rf ` find . -type d -name __pycache__`
1823 rm -f .coverage
1924
2025test : clean
26+ pytest
27+
28+ coverage : clean
2129 coverage run -m pytest
2230 coverage report
2331
You can’t perform that action at this time.
0 commit comments