Skip to content

Commit

Permalink
github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Nov 17, 2020
1 parent 0069e47 commit c5f43da
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 26 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: |
python -m pip install --upgrade pip tox tox-gh-actions
- run: tox -eflake8
tests:
name: tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
exclude:
# pypy3 currently fails to run on Windows
- os: windows-latest
python: pypy3
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: |
python -m pip install --upgrade pip tox tox-gh-actions
- run: tox
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
[tox]
envlist=flake8,py36,py37,py38,pypy3,docs
envlist=flake8,py36,py37,py38,py39,pypy3,docs
skip_missing_interpreters=True

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
pypy3: pypy3

[testenv]
commands=
pytest -p no:logging --cov=aioflask --cov-branch --cov-report=term-missing
deps=
pytest
pytest-cov
basepython =
flake8: python3.7
py36: python3.6
py37: python3.7
py38: python3.8
pypy3: pypy3
docs: python3.7

[testenv:flake8]
deps=
Expand Down

0 comments on commit c5f43da

Please sign in to comment.