Skip to content

Commit 47c83f5

Browse files
committed
updated makefile, updated workflows with make
1 parent 8dacf7b commit 47c83f5

File tree

5 files changed

+275
-294
lines changed

5 files changed

+275
-294
lines changed

.github/workflows/code_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
pip install pytest coverage geopandas .
2222
- name: Coverage
2323
run: |
24-
coverage run -m pytest
24+
make coverage
2525
coverage xml -o "coverage.xml"
2626
- name: Codacy Coverage Reporter
2727
uses: codacy/codacy-coverage-reporter-action@master

.github/workflows/lint_and_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- name: Install dependencies
1515
run: |
1616
python -m pip install --upgrade pip
17-
pip install flake8 pep8-naming .
17+
pip install flake8 pep8-naming flake8-bugbear flake8-docstrings .
1818
- name: Lint
1919
working-directory: ${{ github.workspace }}
2020
run: |
21-
flake8
21+
make lint
2222
test:
2323
name: Code Testing
2424
runs-on: ubuntu-latest
@@ -35,4 +35,4 @@ jobs:
3535
- name: Test
3636
working-directory: ${{ github.workspace }}
3737
run: |
38-
pytest --verbose
38+
make test

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install flake8 pep8-naming pytest geopandas .
21+
pip install flake8 pep8-naming flake8-bugbear flake8-docstrings .
2222
- name: Lint and Test
2323
run: |
24-
flake8
25-
pytest
24+
make lint
25+
make test
2626
- name: Build
2727
run: |
2828
pip install setuptools wheel twine

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ clean:
1818
rm -f .coverage
1919

2020
test: clean
21+
pytest
22+
23+
coverage: clean
2124
coverage run -m pytest
2225
coverage report
2326

0 commit comments

Comments
 (0)