diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2020-12-03 23:50:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 15:50:02 -0600 |
commit | 632e346c3296e8f37a80949eba268d9f49ab86be (patch) | |
tree | 1c93064cb113772ff45af39f331179190a75d30c /.github | |
parent | 26cf0631fe89f61d5b0ef8d6949676f051e35796 (diff) | |
download | pyflakes-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>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 36 |
1 files changed, 36 insertions, 0 deletions
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 |