Skip to content

Commit

Permalink
Run CI on latest OS versions (#288).
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Jul 27, 2022
1 parent 1220391 commit e3d2da3
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['pypy3', '3.6', '3.7', '3.8', '3.9', '3.10']
os: [macos-10.15, ubuntu-18.04, ubuntu-20.04, windows-2019]
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.9']

steps:
- name: Checkout code
Expand All @@ -30,31 +30,24 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade coveralls setuptools tox wheel
python -m pip install --upgrade build coveralls setuptools tox wheel
- name: Build wheel
run: python setup.py bdist_wheel
- name: Build Vulture wheel
run: python -m build

- name: Install Vulture from wheel (for Linux and MacOS)
if: ${{ matrix.os != 'windows-2019' }}
run: "python -m pip install --only-binary=:all: ./dist/vulture-*.whl"

- name: Install Vulture from wheel (for Windows)
if: ${{ matrix.os == 'windows-2019' }}
- name: Install Vulture wheel
run: "python -m pip install --only-binary=:all: --ignore-installed --find-links=dist/ vulture"

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

- name: Check for style issues
if: ${{ matrix.python-version == 3.6 && matrix.os == 'ubuntu-20.04' }}
- name: Check style
if: ${{ matrix.python-version == 3.10 && startsWith(matrix.os, 'ubuntu') }}
run: python -m tox -e style

- name: Report coverage to Codecov
Expand Down

0 comments on commit e3d2da3

Please sign in to comment.