Skip to content

Commit bd80d20

Browse files
committed
Switch from Travis CI/Coveralls to GH Actions/Codecov
Travis CI free tier is going away and Codecov is my go-to code coverage service now. Closes GH-332.
1 parent ab67a7a commit bd80d20

5 files changed

Lines changed: 45 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "**"
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
pip install --upgrade -r requirements-dev.txt
27+
pip install .
28+
- name: Run tests
29+
run: make ci
30+
env:
31+
SKIP_IPV6: 1
32+
- name: Report coverage to Codecov
33+
uses: codecov/codecov-action@v1

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
python-zeroconf
22
===============
33

4-
.. image:: https://travis-ci.org/jstasiak/python-zeroconf.svg?branch=master
5-
:target: https://travis-ci.org/jstasiak/python-zeroconf
6-
4+
.. image:: https://github.com/jstasiak/python-zeroconf/workflows/CI/badge.svg
5+
:target: https://github.com/jstasiak/python-zeroconf?query=workflow%3ACI+branch%3Amaster
6+
77
.. image:: https://img.shields.io/pypi/v/zeroconf.svg
88
:target: https://pypi.python.org/pypi/zeroconf
99

10-
.. image:: https://img.shields.io/coveralls/jstasiak/python-zeroconf.svg
11-
:target: https://coveralls.io/r/jstasiak/python-zeroconf
10+
.. image:: https://codecov.io/gh/jstasiak/python-zeroconf/branch/master/graph/badge.svg
11+
:target: https://codecov.io/gh/jstasiak/python-zeroconf
1212

1313
`Documentation <https://python-zeroconf.readthedocs.io/en/latest/>`_.
1414

docs/index.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
Welcome to python-zeroconf documentation!
22
=========================================
33

4-
.. image:: https://travis-ci.org/jstasiak/python-zeroconf.svg?branch=master
5-
:alt: Build status
6-
:target: https://travis-ci.org/jstasiak/python-zeroconf
4+
.. image:: https://github.com/jstasiak/python-zeroconf/workflows/CI/badge.svg
5+
:target: https://github.com/jstasiak/python-zeroconf?query=workflow%3ACI+branch%3Amaster
76

87
.. image:: https://img.shields.io/pypi/v/zeroconf.svg
98
:target: https://pypi.python.org/pypi/zeroconf
10-
11-
.. image:: https://coveralls.io/repos/github/jstasiak/python-zeroconf/badge.svg?branch=master
12-
:alt: Covergage status
13-
:target: https://coveralls.io/github/jstasiak/python-zeroconf?branch=master
9+
10+
.. image:: https://codecov.io/gh/jstasiak/python-zeroconf/branch/master/graph/badge.svg
11+
:target: https://codecov.io/gh/jstasiak/python-zeroconf
1412

1513
GitHub (code repository, issues): https://github.com/jstasiak/python-zeroconf
1614

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
autopep8
2+
black;implementation_name=="cpython"
23
coveralls
34
coverage
45
# Version restricted because of https://github.com/PyCQA/pycodestyle/issues/741
56
flake8>=3.6.0
67
flake8-import-order
78
ifaddr
9+
mypy;implementation_name=="cpython"
810
# 0.11.0 breaks things https://github.com/PyCQA/pep8-naming/issues/152
911
pep8-naming!=0.6.0,!=0.11.0
1012
pytest

0 commit comments

Comments
 (0)