mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 08:56:17 +00:00
Trying to replace Travis CI with GitHub Actions
This commit is contained in:
parent
bc6e768627
commit
bca9104147
35
.github/workflows/package.yaml
vendored
Normal file
35
.github/workflows/package.yaml
vendored
Normal 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() }}
|
13
.travis.yml
13
.travis.yml
@ -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
|
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user