@@ -44,21 +44,33 @@ jobs:
44
44
run : ./tools/run-isort-check
45
45
46
46
pytest :
47
- runs-on : ubuntu-latest
48
47
strategy :
49
48
# Not failing fast allows all matrix jobs to try & finish even if one fails early
50
49
fail-fast : false
51
50
matrix :
52
- test-python-version : [3.5, 3.6, 3.7, 3.8, 3.9]
53
- name : Install & pytest - CPython ${{ matrix.test-python-version }}
51
+ env :
52
+ - {PYTHON: 3.5, OS: ubuntu-latest, NAME: "CPython 3.5 (ubuntu)"}
53
+ - {PYTHON: 3.6, OS: ubuntu-latest, NAME: "CPython 3.6 (ubuntu)"}
54
+ - {PYTHON: 3.7, OS: ubuntu-latest, NAME: "CPython 3.7 (ubuntu)"}
55
+ - {PYTHON: 3.8, OS: ubuntu-latest, NAME: "CPython 3.8 (ubuntu)"}
56
+ - {PYTHON: 3.9, OS: ubuntu-latest, NAME: "CPython 3.9 (ubuntu)"}
57
+ - {PYTHON: 'pypy3', OS: ubuntu-latest, NAME: "PyPy 3 (ubuntu)"}
58
+ - {PYTHON: 3.9, OS: macos-latest, NAME: "CPython 3.9 (macos)"}
59
+ runs-on : ${{ matrix.env.OS }}
60
+ name : Install & test - ${{ matrix.env.NAME}}
54
61
steps :
55
62
- uses : actions/checkout@v2
56
- - name : Install Python 3
63
+ - name : Install Python version ${{ matrix.env.PYTHON }}
57
64
uses : actions/setup-python@v1
58
65
with :
59
- python-version : ${{ matrix.test-python-version }}
66
+ python-version : ${{ matrix.env.PYTHON }}
67
+ - name : Output Python version
68
+ run : python --version
60
69
- name : Upgrade pip
61
70
run : python -m pip install --upgrade pip
71
+ - name : Ensure libxml-related libraries are installed (pypy3 only)
72
+ if : matrix.env.PYTHON == 'pypy3'
73
+ run : sudo apt install libxml2-dev libxslt1-dev
62
74
- name : Ensure regular package installs from checkout
63
75
run : pip install .
64
76
- name : Install test dependencies
0 commit comments