Skip to content

Commit

Permalink
Test on GitHub Actions (#596)
Browse files Browse the repository at this point in the history
* Test on GitHub Actions

* Add 2.7 and 3.5 to GHA

* Remove Travis CI and AppVeyor

* Simplify config

Co-authored-by: Anthony Sottile <asottile@umich.edu>

* Review updates

* Remove redundant line

Co-authored-by: Anthony Sottile <asottile@umich.edu>
  • Loading branch information
hugovk and asottile committed Dec 3, 2020
1 parent 26cf063 commit 632e346
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 45 deletions.
22 changes: 0 additions & 22 deletions .appveyor.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy2", "pypy3"]
os: [ubuntu-latest]
# Include py2 + minimum py3 + maximum py3 + pypy + pypy3 on Windows
include:
- { os: "windows-latest" , python-version: "2.7" }
- { os: "windows-latest" , python-version: "3.5" }
- { os: "windows-latest" , python-version: "3.9" }
exclude:
# Currently fails with PyPy 7.3.2, pending 7.3.3+ on GHA:
# https://github.com/actions/setup-python/issues/163
- { os: "windows-latest" , python-version: "pypy2" }
- { os: "windows-latest" , python-version: "pypy3" }

steps:
- 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 -U tox

- name: Tox tests
run: tox -e py
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ rebase your commits for you.

All changes should include tests and pass flake8_.

.. image:: https://api.travis-ci.org/PyCQA/pyflakes.svg?branch=master
:target: https://travis-ci.org/PyCQA/pyflakes
:alt: Build status
.. image:: https://github.com/PyCQA/pyflakes/workflows/Test/badge.svg
:target: https://github.com/PyCQA/pyflakes/actions
:alt: GitHub Actions build status

.. _Pylint: http://www.pylint.org/
.. _Pylint: https://www.pylint.org/
.. _flake8: https://pypi.org/project/flake8/
.. _`PEP 8`: http://legacy.python.org/dev/peps/pep-0008/
.. _`PEP 8`: https://www.python.org/dev/peps/pep-0008/
.. _Pychecker: http://pychecker.sourceforge.net/
.. _`rebase your changes`: https://git-scm.com/book/en/v2/Git-Branching-Rebasing
.. _`GitHub pull request`: https://github.com/PyCQA/pyflakes/pulls
Expand Down

0 comments on commit 632e346

Please sign in to comment.