Skip to content

Commit 632e346

Browse files
hugovkasottile
andauthored
Test on GitHub Actions (#596)
* Test on GitHub Actions * Add 2.7 and 3.5 to GHA * Remove Travis CI and AppVeyor * Simplify config Co-authored-by: Anthony Sottile <[email protected]> * Review updates * Remove redundant line Co-authored-by: Anthony Sottile <[email protected]>
1 parent 26cf063 commit 632e346

File tree

4 files changed

+41
-45
lines changed

4 files changed

+41
-45
lines changed

.appveyor.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy2", "pypy3"]
12+
os: [ubuntu-latest]
13+
# Include py2 + minimum py3 + maximum py3 + pypy + pypy3 on Windows
14+
include:
15+
- { os: "windows-latest" , python-version: "2.7" }
16+
- { os: "windows-latest" , python-version: "3.5" }
17+
- { os: "windows-latest" , python-version: "3.9" }
18+
exclude:
19+
# Currently fails with PyPy 7.3.2, pending 7.3.3+ on GHA:
20+
# https://github.com/actions/setup-python/issues/163
21+
- { os: "windows-latest" , python-version: "pypy2" }
22+
- { os: "windows-latest" , python-version: "pypy3" }
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install dependencies
33+
run: python -m pip install -U tox
34+
35+
- name: Tox tests
36+
run: tox -e py

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ rebase your commits for you.
7272

7373
All changes should include tests and pass flake8_.
7474

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

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

0 commit comments

Comments
 (0)