Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions #211

Merged
merged 12 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 50 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,58 @@
name: Ubuntu
name: CI

on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-18.04
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.6]
python-version: [pypy3, 2.7, 3.5, 3.6, 3.7, 3.8]
os: [macos-10.15, ubuntu-18.04, ubuntu-20.04, windows-2019]
include:
- os: ubuntu-18.04
python-version: pypy2
- os: ubuntu-20.04
python-version: pypy2

steps:
- uses: actions/checkout@v2
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coveralls setuptools tox wheel

- name: Build wheel
run: python setup.py bdist_wheel

- 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' }}
run: "python -m pip install --only-binary=:all: --no-index --ignore-installed --find-links=dist/ vulture"
jendrikseipp marked this conversation as resolved.
Show resolved Hide resolved

- name: Run Vulture
run: |
vulture vulture/ tests/
python -m vulture vulture/ tests/

- name: Run Tests
run: tox -e py

- name: Check for Style Issues
if: ${{ matrix.python-version == 3.6 && matrix.os == 'ubuntu-18.04' }}
run: tox -e style
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# 1.6 (unreleased)

* Differentiate between functions and methods (Jendrik Seipp, #112, #209).
* Move from Travis to GitHub actions (RJ722, #211).

# 1.5 (2020-05-24)
# 1.5 (2020-05-24)

* Support flake8 "noqa" error codes F401 (unused import) and F841 (unused
local variable) (RJ722, #195).
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Vulture - Find dead code

[![Travis CI build status (Linux)](https://travis-ci.org/jendrikseipp/vulture.svg?branch=master)](https://travis-ci.org/jendrikseipp/vulture)
[![AppVeyor CI build status (Windows)](https://ci.appveyor.com/api/projects/status/github/jendrikseipp/vulture?svg=true)](https://ci.appveyor.com/project/jendrikseipp96693/vulture)
![CI:Test](https://github.com/jendrikseipp/vulture/workflows/CI/badge.svg)
[![image](https://coveralls.io/repos/github/jendrikseipp/vulture/badge.svg?branch=master)](https://coveralls.io/github/jendrikseipp/vulture?branch=master)

Vulture finds unused code in Python programs. This is useful for
Expand Down
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
disable=unused-import): unused-import, unused-variable, unused-argument
and possibly-unused-variable. See
https://github.com/janjur/readable-pylint-messages#unused-import.
* Move from Travis to GitHub actions.

# Non-TODOs

Expand Down
30 changes: 0 additions & 30 deletions appveyor.yml

This file was deleted.