From 6031c1f78a3ab0c30fb7c108df28281ca1dbce83 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Wed, 3 Jun 2020 21:35:02 +0000 Subject: Migrate builder to GitHub actions --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 16 ---------------- README.rst | 4 ++-- 3 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0f63125 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: build + +on: +- push +- pull_request + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + python-version: + - 3.5 + - 3.6 + - 3.7 + - 3.8 + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - run: pip install -U pip setuptools wheel mock nose pytest + - run: python setup.py release diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 38a96b7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -matrix: - include: - - python: "3.5" - - python: "3.6" - - python: "3.7" - dist: xenial -before_script: - # Travis versions of these are really outdated - - pip install -U mock nose pytest - # Enable sending Coverage data - - pip install codecov -script: - - python setup.py release -after_success: - - codecov diff --git a/README.rst b/README.rst index b9e6767..e47c39e 100644 --- a/README.rst +++ b/README.rst @@ -5,8 +5,8 @@ Pandora API Client .. image:: https://img.shields.io/pypi/v/pydora.svg :target: https://pypi.python.org/pypi/pydora -.. image:: https://img.shields.io/travis/mcrute/pydora.svg - :target: https://travis-ci.org/mcrute/pydora +.. image:: https://github.com/mcrute/pydora-build-test/workflows/build/badge.svg + :target: https://github.com/mcrute/pydora-build-test/actions?query=workflow%3Abuild This code is licensed under the MIT license. The code is maintained on `GitHub `_. -- cgit v1.2.3