diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..46103f0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Test application + +on: + push: + branches: [master, develop] + pull_request: + branches: [master, develop] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ff970b4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -dist: xenial -language: python -cache: pip -python: - - "3.6" - - "3.7" - - "3.8" -install: - - pip install -U tox-travis -script: tox diff --git a/tox.ini b/tox.ini index d97d1d9..c022ad8 100644 --- a/tox.ini +++ b/tox.ini @@ -2,9 +2,11 @@ envlist = py36, py37, py38, lint skip_missing_interpreters = True -[travis] +[gh-actions] python = - 3.6: py36, lint + 3.6: py36, lint + 3.7: py37 + 3.8: py38 [testenv] commands =