File: test.yml

package info (click to toggle)
python-xvfbwrapper 0.2.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104 kB
  • sloc: python: 269; makefile: 8
file content (33 lines) | stat: -rw-r--r-- 961 bytes parent folder | download
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
name: Test Coverage

on: ["push", "pull_request"]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        # supported python versions can be found here
        # https://github.com/actions/python-versions/releases
        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.11']
    steps:
      - uses: actions/checkout@master
      - name: set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          pip install -U wheel
          pip install -U coverage
          pip install .
      - name: Run mypy
        run: |
            pip install -U mypy
            mypy -p xvfbwrapper --install-types --non-interactive
      - name: Run tests & coverage
        run: |
          coverage erase
          coverage run --source=. -m unittest discover
          coverage report -m