diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml new file mode 100644 index 0000000..3ef655b --- /dev/null +++ b/.github/workflows/package.yaml @@ -0,0 +1,35 @@ +# Inspired by python-package + +name: Package +on: + - push + - pull_request +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - 3.5 + - 3.6 + - 3.7 + - 3.8 + steps: + - name: Checkout + uses: actions/checkout@v2 + - 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 -r ci-requirements.txt + - name: Run tests + run: | + coverage run setup.py test + coverage run -a setup.py test --test-suite tests.with_net + - name: Upload coverage + uses: codecov/codecov-action@v1.0.15 + if: ${{ always() }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f04b096..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -dist: xenial -language: python -python: - - 3.5 - - 3.6 - - 3.7 - - 3.8 -install: - - pip install -r travis-requirements.txt -script: - - coverage run setup.py test - - coverage run -a setup.py test --test-suite tests.with_net -after_script: codecov diff --git a/README.md b/README.md index 9105bbe..77886cc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ _Supysonic_ is a Python implementation of the [Subsonic][] server API. -[![Build Status](https://travis-ci.com/spl0k/supysonic.svg?branch=master)](https://travis-ci.com/spl0k/supysonic) +![Build Status](https://github.com/spl0k/supysonic/workflows/Package/badge.svg) [![codecov](https://codecov.io/gh/spl0k/supysonic/branch/master/graph/badge.svg)](https://codecov.io/gh/spl0k/supysonic) ![Python](https://img.shields.io/badge/python-3.5%2C%203.6%2C%203.7%2C%203.8-blue.svg) diff --git a/travis-requirements.txt b/ci-requirements.txt similarity index 100% rename from travis-requirements.txt rename to ci-requirements.txt