Skip to content

Readme update.

Readme update. #9

Workflow file for this run

name: Tests
on:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy pylint opencv-python osmnx rasterio python_dotenv tqdm types-tqdm pandas-stubs types-requests pytest pytest-cov
- name: Run mypy to generate cache
run: mypy maps4fs || true
- name: Install missing stub packages
run: mypy --install-types --non-interactive
- name: Run mypy
run: mypy maps4fs
- name: Run pylint
run: pylint maps4fs
- name: Run pytest with coverage
run: pytest --cov=maps4fs --cov-report xml
- name: Download Code Climate test-reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Upload coverage data to Code Climate
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
./cc-test-reporter after-build --exit-code 0 -t coverage.py --prefix /home/runner/work/maps4fs/maps4fs/