Skip to content

Staging v0.7 release #48

Staging v0.7 release

Staging v0.7 release #48

Workflow file for this run

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