diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1e59d62 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Python package + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v1 + - 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 --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 44955b1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: python - -python: - - "3.7" - - "3.8" - - "3.9" - - "pypy3" - -install: - - pip install tox-travis - -script: - - tox - -notifications: - email: - on_success: change - on_failure: always - -sudo: false \ No newline at end of file diff --git a/tox.ini b/tox.ini index 3532060..16e5e84 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,13 @@ [tox] envlist = py37, py38, py39, pypy3 +[gh-actions] +python = + 3.7: py37 + 3.8: py38 + 3.9: py39 + pypy-3: pypy3 + [testenv] commands = python -m unittest