diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..543c5c0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + python: [3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python }} + - name: Install Dependencies + run: | + sudo apt-get update; sudo apt-get install lzop xz-utils gzip + pip install tox coveralls + - name: Run Tox + run: tox -e py + - name: Coverage + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: coveralls + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index edb3de8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python - -python: - - 3.4 - - 3.5 - - 3.6 - -addons: - apt: - packages: - - lzop - -install: pip install tox python-coveralls - -script: - - tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d .) - -after_success: - - coveralls diff --git a/README.md b/README.md index 2458288..c6c2970 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -# uhu - UpdateHub Utilities [![Build Status](https://travis-ci.org/UpdateHub/uhu.svg?branch=master)](https://travis-ci.org/UpdateHub/uhu) [![Coverage Status](https://coveralls.io/repos/github/UpdateHub/uhu/badge.svg?branch=master)](https://coveralls.io/github/UpdateHub/uhu?branch=master) +![Tests](https://github.com/UpdateHub/uhu/workflows/CI/badge.svg) +[![Coverage Status](https://coveralls.io/repos/github/UpdateHub/uhu/badge.svg?branch=master)](https://coveralls.io/github/UpdateHub/uhu?branch=master) +[![PyPI](https://img.shields.io/pypi/v/uhu)](https://pypi.python.org/pypi/uhu/) +[![PyPI - Supported Python Versions](https://img.shields.io/pypi/pyversions/uhu)](https://pypi.python.org/pypi/uhu/) + +# uhu - UpdateHub Utilities uhu is an interactive prompt and a command line utility to manage update packages for [UpdateHub](https://github.com/UpdateHub/updatehub) agent.