summaryrefslogtreecommitdiff
path: root/.github/workflows/coverage.yml
blob: c98ff3620b8feabb512b27c080ae54a9e78805d1 (plain)
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
name: Coverage

on: [push]

permissions:
  contents: read

jobs:
  coverage:
    runs-on: ubuntu-latest
    if: github.repository_owner == 'sphinx-doc'

    steps:
    - uses: actions/checkout@v3
    - name: Set up Python
      uses: actions/setup-python@v4
      with:
        python-version: 3

    - name: Check Python version
      run: python --version

    - name: Install graphviz
      run: sudo apt-get install graphviz

    - name: Install dependencies
      run: python -m pip install -U pip tox pytest-cov

    - name: Run Tox
      run: tox --sitepackages -e py -- -vv
      env:
        PYTEST_ADDOPTS: "--cov ./ --cov-append --cov-config setup.cfg"

    - name: codecov
      uses: codecov/codecov-action@v3