15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- python-version : ['pypy3', '3.6', '3.7', '3.8', '3.9', '3.10' ]
19
- os : [macos-10.15, ubuntu-18.04, ubuntu-20.04, windows-2019 ]
18
+ os : [macos-latest, ubuntu-latest, windows-latest ]
19
+ python-version : ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.9' ]
20
20
21
21
steps :
22
22
- name : Checkout code
@@ -30,31 +30,24 @@ jobs:
30
30
- name : Install dependencies
31
31
run : |
32
32
python -m pip install --upgrade pip
33
- python -m pip install --upgrade coveralls setuptools tox wheel
33
+ python -m pip install --upgrade build coveralls setuptools tox wheel
34
34
35
- - name : Build wheel
36
- run : python setup.py bdist_wheel
35
+ - name : Build Vulture wheel
36
+ run : python -m build
37
37
38
- - name : Install Vulture from wheel (for Linux and MacOS)
39
- if : ${{ matrix.os != 'windows-2019' }}
40
- run : " python -m pip install --only-binary=:all: ./dist/vulture-*.whl"
41
-
42
- - name : Install Vulture from wheel (for Windows)
43
- if : ${{ matrix.os == 'windows-2019' }}
38
+ - name : Install Vulture wheel
44
39
run : " python -m pip install --only-binary=:all: --ignore-installed --find-links=dist/ vulture"
45
40
46
41
- name : Run Vulture
47
42
run : |
48
43
vulture vulture/ tests/
49
44
python -m vulture vulture/ tests/
50
45
51
- # Tox fails to find PyPy on Windows. Neither "tox -e py" nor "tox -e pypy3" works.
52
46
- name : Run tests
53
- if : ${{ matrix.python-version != 'pypy3' || matrix.os != 'windows-2019' }}
54
47
run : python -m tox -e py
55
48
56
- - name : Check for style issues
57
- if : ${{ matrix.python-version == 3.6 && matrix.os == 'ubuntu-20.04' }}
49
+ - name : Check style
50
+ if : ${{ matrix.python-version == 3.10 && startsWith( matrix.os, 'ubuntu') }}
58
51
run : python -m tox -e style
59
52
60
53
- name : Report coverage to Codecov
0 commit comments