forked from martinRenou/auditwheel
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.51 KB
/
test.yml
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
54
55
56
57
58
59
60
61
name: Test
on:
push:
pull_request:
jobs:
pre-commit:
name: Pre-commit checks (Black, Flake8, MyPy, ...)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.6
- uses: pre-commit/[email protected]
test-dist:
name: Test SDist & wheel
needs: pre-commit
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install CPython 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Run tests
run: pipx run nox -s test-dist -- 3.9
test:
name: CPython ${{ matrix.python }}
needs: test-dist
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- python: "3.6"
- python: "3.7"
- python: "3.8"
- python: "3.9"
- python: "3.10"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup cache
uses: actions/cache@v2
with:
path: ~/.cache/auditwheel_tests
key: python${{ matrix.python }}-${{ hashFiles('**/test_manylinux.py') }}
restore-keys: python${{ matrix.python }}-
- name: Install CPython ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
architecture: x64
- name: Run tests
run: pipx run nox -s tests-${{ matrix.python }}