File: tests.yml

package info (click to toggle)
sphinxcontrib-programoutput 0.17-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 288 kB
  • sloc: python: 910; makefile: 24
file content (53 lines) | stat: -rw-r--r-- 1,391 bytes parent folder | download | duplicates (3)
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
50
51
52
53
name: tests

on: [push, pull_request]

env:
  PYTHONHASHSEED: 1042466059
  ZOPE_INTERFACE_STRICT_IRO: 1
  PYTHONWARNINGS: "ignore:'U' mode is deprecated:DeprecationWarning::"


jobs:
  test:
    strategy:
      matrix:
        python-version: [2.7, pypy2, pypy3, 3.6, 3.7, 3.8, 3.9]

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Pip cache
      uses: actions/cache@v2
      with:
        path: ~/.cache/pip
        key: ${{ runner.os }}-pip-${{ hashFiles('setup.*') }}
        restore-keys: |
          ${{ runner.os }}-pip-
    - name: Install dependencies
      run: |
        python -m pip install -U pip setuptools wheel
        python -m pip install -U coverage pylint
        python -m pip install -U -e ".[test]"
    - name: Test
      run: |
        pylint -r no src/sphinxcontrib
        coverage run -m unittest discover -s src
    - name: Submit to Coveralls
      # This is a container action, which only runs on Linux.
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel: true

  coveralls_finish:
    needs: test
    runs-on: ubuntu-latest
    steps:
    - name: Coveralls Finished
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel-finished: true