1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
name: Coverage
on:
push:
paths-ignore:
- '**.md'
pull_request:
branches: [master]
types: [opened]
paths-ignore:
- '**.md'
repository_dispatch:
types: manual-trigger
jobs:
run_coverage:
if: contains(toJson(github.event.commits), '[skip ci]') == false && contains(toJson(github.event.commits), '[skip github]') == false
runs-on: 'ubuntu-latest'
steps:
- name: Check out
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r dev-requirements.txt
python -m pip list
echo "PYTHONPATH=home/runner/work/psautohint/build/lib" >> $GITHUB_ENV
- name: Generate and upload Python and C coverage
env:
CFLAGS: '--coverage'
run: |
python setup.py build --build-base build --build-platlib build/lib
python setup.py install
python -m pytest --cov=psautohint --cov-report=xml -n auto
bash <(curl -s https://codecov.io/bash) -y .codecov.yml
|