Debian Codegraph @

testing/web-platform/tests/tools/third_party/websockets/.github/workflows/tests.yml

raw
1 name: Run tests
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11 env:
12 WEBSOCKETS_TESTS_TIMEOUT_FACTOR: 10
13
14 jobs:
15 coverage:
16 name: Run test coverage checks
17 runs-on: ubuntu-latest
18 steps:
19 - name: Check out repository
20 uses: actions/checkout@v4
21 - name: Install Python 3.x
22 uses: actions/setup-python@v4
23 with:
24 python-version: "3.x"
25 - name: Install tox
26 run: pip install tox
27 - name: Run tests with coverage
28 run: tox -e coverage
29 - name: Run tests with per-module coverage
30 run: tox -e maxi_cov
31
32 quality:
33 name: Run code quality checks
34 runs-on: ubuntu-latest
35 steps:
36 - name: Check out repository
37 uses: actions/checkout@v4
38 - name: Install Python 3.x
39 uses: actions/setup-python@v4
40 with:
41 python-version: "3.x"
42 - name: Install tox
43 run: pip install tox
44 - name: Check code formatting
45 run: tox -e black
46 - name: Check code style
47 run: tox -e ruff
48 - name: Check types statically
49 run: tox -e mypy
50
51 matrix:
52 name: Run tests on Python ${{ matrix.python }}
53 needs:
54 - coverage
55 - quality
56 runs-on: ubuntu-latest
57 strategy:
58 matrix:
59 python:
60 - "3.8"
61 - "3.9"
62 - "3.10"
63 - "3.11"
64 - "pypy-3.8"
65 - "pypy-3.9"
66 is_main:
67 - ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
68 exclude:
69 - python: "pypy-3.8"
70 is_main: false
71 - python: "pypy-3.9"
72 is_main: false
73 steps:
74 - name: Check out repository
75 uses: actions/checkout@v4
76 - name: Install Python ${{ matrix.python }}
77 uses: actions/setup-python@v4
78 with:
79 python-version: ${{ matrix.python }}
80 - name: Install tox
81 run: pip install tox
82 - name: Run tests
83 run: tox -e py