Fix whitespace errors. #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
# This workflow generates a coverage report (how much of the codebase is covered by the | |
# unit tests) and posts headline metrics to the PR thread. | |
on: | |
# push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install Pandana | |
run: | | |
pip install . | |
pip install osmnet | |
# `coverage run ...` is failing in GitHub Actions, but I'm not able to reproduce the | |
# problem locally. We should look into this again another time. (11-May-2021) | |
# - name: Generate coverage report | |
# run: | | |
# pip install pytest coverage | |
# coverage run --source pandana --module pytest --verbose | |
# coverage report --show-missing | |
# echo "coverage=$(coverage report | grep '^TOTAL' | grep -oE '[^ ]+$')" >> $GITHUB_ENV | |
# - name: Post comment on PR | |
# uses: unsplash/comment-on-pr@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# msg: "Test coverage is ${{ env.coverage }}" | |
# check_for_duplicate_msg: true |