summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2020-12-03 23:50:02 +0200
committerGitHub <noreply@github.com>2020-12-03 15:50:02 -0600
commit632e346c3296e8f37a80949eba268d9f49ab86be (patch)
tree1c93064cb113772ff45af39f331179190a75d30c
parent26cf0631fe89f61d5b0ef8d6949676f051e35796 (diff)
downloadpyflakes-632e346c3296e8f37a80949eba268d9f49ab86be.tar.gz
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 <asottile@umich.edu> * Review updates * Remove redundant line Co-authored-by: Anthony Sottile <asottile@umich.edu>
-rw-r--r--.appveyor.yml22
-rw-r--r--.github/workflows/test.yml36
-rw-r--r--.travis.yml18
-rw-r--r--README.rst10
4 files changed, 41 insertions, 45 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
deleted file mode 100644
index dc51977..0000000
--- a/.appveyor.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# To activate, change the Appveyor settings to use `.appveyor.yml`.
-environment:
- PYPY_PY2_VERSION: 2.7
- PYPY_PY3_VERSION: 3.6
- PYPY_VERSION: 7.3.2
-install:
- - python -m pip install --upgrade tox virtualenv
-
- - ps: (New-Object Net.WebClient).DownloadFile("https://downloads.python.org/pypy/pypy${env:PYPY_PY2_VERSION}-v${env:PYPY_VERSION}-win32.zip", "$env:appveyor_build_folder\pypy${env:PYPY_PY2_VERSION}-v${env:PYPY_VERSION}-win32.zip")
- - ps: 7z x pypy${env:PYPY_PY2_VERSION}-v${env:PYPY_VERSION}-win32.zip | Out-Null
- - move pypy%PYPY_PY2_VERSION%-v%PYPY_VERSION%-win32 C:\
- - 'SET PATH=C:\pypy%PYPY_PY2_VERSION%-v%PYPY_VERSION%-win32\;%PATH%'
-
- - ps: (New-Object Net.WebClient).DownloadFile("https://downloads.python.org/pypy/pypy${env:PYPY_PY3_VERSION}-v${env:PYPY_VERSION}-win32.zip", "$env:appveyor_build_folder\pypy${env:PYPY_PY3_VERSION}-v${env:PYPY_VERSION}-win32.zip")
- - ps: 7z x pypy${env:PYPY_PY3_VERSION}-v${env:PYPY_VERSION}-win32.zip | Out-Null
- - move pypy%PYPY_PY3_VERSION%-v%PYPY_VERSION%-win32 C:\
- - 'SET PATH=C:\pypy%PYPY_PY3_VERSION%-v%PYPY_VERSION%-win32\;%PATH%'
-
-build: off
-
-test_script:
- - python -m tox --skip-missing-interpreters=false
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..be9e239
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -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
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index cccc19c..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-language: python
-cache: pip
-matrix:
- include:
- - python: 2.7
- - python: 3.4
- - python: 3.5
- - python: 3.6
- - python: pypy2.7-7.3.1
- - python: pypy3.6-7.3.1
- - python: 3.7
- dist: xenial
- - python: 3.8
- dist: xenial
- - python: 3.9-dev
- dist: xenial
-install: pip install tox
-script: tox -e py
diff --git a/README.rst b/README.rst
index fb13fdf..c456d25 100644
--- a/README.rst
+++ b/README.rst
@@ -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