diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 0000000..d99d061 --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,51 @@ +name: Build/test on Linux +# This workflow is triggered on pushes to the repository. +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + py: [ + '3.5', + '3.6', + '3.7', + '3.8', + 'pypy3' + ] + name: "Python: ${{ matrix.py }}" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.py }} + architecture: x64 + - run: pip install tox + - name: Running tox + run: tox -e py + coverage: + runs-on: ubuntu-latest + name: Validate coverage + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.7 + architecture: x64 + - run: pip install tox + - run: tox -e py37,coverage + docs: + runs-on: ubuntu-latest + name: Build the documentation + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.7 + architecture: x64 + - run: pip install tox + - run: tox -e docs diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml new file mode 100644 index 0000000..8333ce7 --- /dev/null +++ b/.github/workflows/ci-macos.yml @@ -0,0 +1,28 @@ +name: Build/test on MacOS +# This workflow is triggered on pushes to the repository. +on: [push, pull_request] + +jobs: + test: + runs-on: macOS-latest + strategy: + matrix: + py: [ + '3.5', + '3.6', + '3.7', + '3.8', + 'pypy3' + ] + architecture: ['x64'] + name: "Python: ${{ matrix.py }}" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.py }} + architecture: ${{ matrix.architecture }} + - run: pip install tox + - name: Running tox + run: tox -e py diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 0000000..23df5a4 --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,27 @@ +name: Build/test on Windows +# This workflow is triggered on pushes to the repository. +on: [push, pull_request] + +jobs: + test: + runs-on: windows-2019 + strategy: + matrix: + py: [ + '3.5', + '3.6', + '3.7', + '3.8' + ] + architecture: ['x86', 'x64'] + name: "Python: ${{ matrix.py }} (${{ matrix.architecture }})" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.py }} + architecture: ${{ matrix.architecture }} + - run: pip install tox + - name: Running tox + run: tox -e py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 32443b9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -sudo: false - -cache: - directories: - - $HOME/.cache/pip - -language: python - -matrix: - include: - - python: '3.7' - env: TOXENV=py37 - dist: xenial - sudo: true - - python: '3.6' - env: TOXENV=py36 - - python: '3.5' - env: TOXENV=py35 - - python: 'pypy3' - env: TOXENV=pypy3 - - python: '3.7' - env: TOXENV=py37,coverage - dist: xenial - sudo: true - - python: '3.7' - env: TOXENV=docs - dist: xenial - sudo: true - - python: '3.7' - env: TOXENV=lint - dist: xenial - sudo: true - -install: pip install tox - -script: tox diff --git a/README.rst b/README.rst index 8d217a0..f0484bd 100644 --- a/README.rst +++ b/README.rst @@ -5,8 +5,14 @@ wired .. image:: https://img.shields.io/pypi/v/wired.svg :target: https://pypi.org/pypi/wired -.. image:: https://img.shields.io/travis/mmerickel/wired/master.svg - :target: https://travis-ci.org/mmerickel/wired +.. image:: https://github.com/mmerickel/wired/workflows/ci-linux/badge.svg + :target: https://github.com/mmerickel/wired/actions?query=workflow%3A%22Build%2Ftest+on+Linux%22 + +.. image:: https://github.com/mmerickel/wired/workflows/Build/test%20on%20MacOS/badge.svg + :target: https://github.com/mmerickel/wired/actions?query=workflow%3A%22Build%2Ftest+on+MacOS%22 + +.. image:: https://github.com/mmerickel/wired/workflows/ci-windows/badge.svg + :target: https://github.com/mmerickel/wired/actions?query=workflow%3A%22Build%2Ftest+on+Windows%22 .. image:: https://readthedocs.org/projects/wired/badge/?version=latest :target: https://readthedocs.org/projects/wired/?badge=latest diff --git a/setup.py b/setup.py index 504b6a4..5f0c87b 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,6 @@ def readfile(name): 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',