1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-19 10:51:04 +00:00

Trying to replace Travis CI with GitHub Actions

This commit is contained in:
Alban Féron 2020-11-21 17:33:38 +01:00
parent bc6e768627
commit bca9104147
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165
4 changed files with 36 additions and 14 deletions

35
.github/workflows/package.yaml vendored Normal file
View File

@ -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() }}

View File

@ -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

View File

@ -2,7 +2,7 @@
_Supysonic_ is a Python implementation of the [Subsonic][] server API. _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) [![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) ![Python](https://img.shields.io/badge/python-3.5%2C%203.6%2C%203.7%2C%203.8-blue.svg)