From bca91041471734247cf1fe6406c9fb06609deb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alban=20F=C3=A9ron?= Date: Sat, 21 Nov 2020 17:33:38 +0100 Subject: [PATCH] Trying to replace Travis CI with GitHub Actions --- .github/workflows/package.yaml | 35 +++++++++++++++++++ .travis.yml | 13 ------- README.md | 2 +- ...is-requirements.txt => ci-requirements.txt | 0 4 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/package.yaml delete mode 100644 .travis.yml rename travis-requirements.txt => ci-requirements.txt (100%) 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