Skip to content

Commit

Permalink
ci: Move to Github Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathas-Conceicao <jonathas.conceicao@ossystems.com.br>
  • Loading branch information
Jonathas-Conceicao committed Apr 27, 2020
1 parent f5d1f49 commit e87dfc6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 20 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches:
- master
- topic/fix-tox
pull_request:

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
# python: [3.5, 3.6, 3.7, 3.8]
python: [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

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 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 version](https://badge.fury.io/py/uhu.svg)](https://badge.fury.io/py/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.
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ deps =
pylint==2.4.*
pytest==5.4.*
pytest-pep8==1.0.*
pytest-cov==2.5.*
requests>=2
pycryptodomex==3.9.*
commands =
py.test \
--cov=. \
--junitxml=test-report.xml \
--pep8 \
{posargs}
Expand Down

0 comments on commit e87dfc6

Please sign in to comment.