Debian Codegraph @

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

raw
1 name: Test
2
3 on:
4 pull_request:
5 paths:
6 - ".github/workflows/test.yml"
7 - "**.py"
8 push:
9 paths:
10 - ".github/workflows/test.yml"
11 - "**.py"
12
13 jobs:
14 test:
15 name: ${{ matrix.os }} / ${{ matrix.python_version }}
16 runs-on: ${{ matrix.os }}-latest
17 strategy:
18 fail-fast: false
19 matrix:
20 os: [Ubuntu, Windows, macOS]
21 python_version:
22 ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
23
24 steps:
25 - uses: actions/checkout@v1
26
27 - uses: actions/setup-python@v2
28 name: Install Python ${{ matrix.python_version }}
29 with:
30 python-version: ${{ matrix.python_version }}
31
32 - name: Install dependencies
33 run: |
34 python -m pip install --upgrade pip
35 python -m pip install nox
36 shell: bash
37
38 - name: Run nox
39 run: |
40 python -m nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
41 shell: bash
42 if: ${{ ! startsWith( matrix.python_version, 'pypy' ) }}
43
44 # Binary is named 'pypy', but setup-python specifies it as 'pypy2'.
45 - name: Run nox for pypy2
46 run: |
47 python -m nox --error-on-missing-interpreters -s tests-pypy
48 shell: bash
49 if: matrix.python_version == 'pypy2'
50
51 # Binary is named 'pypy3', but setup-python specifies it as 'pypy-3.7'.
52 - name: Run nox for pypy3
53 run: |
54 python -m nox --error-on-missing-interpreters -s tests-pypy3
55 shell: bash
56 if: matrix.python_version == 'pypy-3.7'