File: coverage.yml

package info (click to toggle)
psautohint 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,148 kB
  • sloc: ansic: 11,179; python: 5,556; makefile: 6; sh: 1
file content (49 lines) | stat: -rw-r--r-- 1,206 bytes parent folder | download | duplicates (2)
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