Skip to content

Commit e3d2da3

Browse files
authored
Run CI on latest OS versions (#288).
1 parent 1220391 commit e3d2da3

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
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']
2020

2121
steps:
2222
- name: Checkout code
@@ -30,31 +30,24 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
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
3434
35-
- name: Build wheel
36-
run: python setup.py bdist_wheel
35+
- name: Build Vulture wheel
36+
run: python -m build
3737

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
4439
run: "python -m pip install --only-binary=:all: --ignore-installed --find-links=dist/ vulture"
4540

4641
- name: Run Vulture
4742
run: |
4843
vulture vulture/ tests/
4944
python -m vulture vulture/ tests/
5045
51-
# Tox fails to find PyPy on Windows. Neither "tox -e py" nor "tox -e pypy3" works.
5246
- name: Run tests
53-
if: ${{ matrix.python-version != 'pypy3' || matrix.os != 'windows-2019' }}
5447
run: python -m tox -e py
5548

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') }}
5851
run: python -m tox -e style
5952

6053
- name: Report coverage to Codecov

0 commit comments

Comments
 (0)