Skip to content

Commit

Permalink
Use Github workflows for CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed Dec 18, 2020
1 parent bded838 commit da944be
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 26 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
branch = True
source = pykulersky
omit = pykulersky/cli.py
relative_files = True
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- 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 requirements_dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 pykulersky tests --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 pykulersky tests
- name: Test with pytest
run: |
pytest --cov --cov-report term-missing
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true

coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pykulersky
.. image:: https://img.shields.io/pypi/v/pykulersky.svg
:target: https://pypi.python.org/pypi/pykulersky

.. image:: https://travis-ci.com/emlove/pykulersky.svg?branch=master
:target: https://travis-ci.com/github/emlove/pykulersky
.. image:: https://github.com/emlove/pykulersky/workflows/tests/badge.svg
:target: https://github.com/emlove/pykulersky/actions

.. image:: https://coveralls.io/repos/emlove/pykulersky/badge.svg
:target: https://coveralls.io/r/emlove/pykulersky
Expand Down
12 changes: 6 additions & 6 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ pip==19.2.3
wheel==0.33.6
flake8==3.7.8
tox==3.14.0
coverage==4.5.4
coveralls==2.0.0
coverage==5.3
coveralls==2.2.0
twine==1.14.0
Click==7.0
pytest==4.6.5
pytest-runner==5.1
pytest-mock==3.1.0
pytest-cov==2.8.1
pytest==6.2.1
pytest-runner==5.2
pytest-mock==3.4.0
pytest-cov==2.10.1
pygatt[GATTTOOL]>=4.0.5

0 comments on commit da944be

Please sign in to comment.