Skip to content

Commit 104d5dd

Browse files
Move builds to GitHub actions
1 parent 4890607 commit 104d5dd

File tree

4 files changed

+66
-34
lines changed

4 files changed

+66
-34
lines changed

.github/workflows/tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
lint:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
- run: python -m pip install --upgrade pip wheel
17+
- run: pip install tox tox-gh-actions
18+
- run: tox -eflake8
19+
- run: tox -edocs
20+
tests:
21+
name: tests
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, macos-latest, windows-latest]
25+
python: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
26+
exclude:
27+
# pypy3 currently fails to run on Windows
28+
- os: windows-latest
29+
python: pypy3
30+
# the loop fails to close in the Mac version of 3.9
31+
- os: macos-latest
32+
python: '3.9'
33+
fail-fast: false
34+
runs-on: ${{ matrix.os }}
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python }}
40+
- run: python -m pip install --upgrade pip wheel
41+
- run: pip install tox tox-gh-actions
42+
- run: tox
43+
coverage:
44+
name: coverage
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: actions/setup-python@v2
49+
- run: python -m pip install --upgrade pip wheel
50+
- run: pip install tox tox-gh-actions codecov
51+
- run: tox
52+
- run: codecov

.travis.yml

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

README.rst

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

4-
.. image:: https://travis-ci.org/miguelgrinberg/python-socketio.svg?branch=master
5-
:target: https://travis-ci.org/miguelgrinberg/python-socketio
4+
.. image:: https://github.com/miguelgrinberg/python-socketio/workflows/build/badge.svg
5+
:target: https://github.com/miguelgrinberg/python-socketio/actions
6+
7+
.. image:: https://codecov.io/gh/miguelgrinberg/python-socketio/branch/master/graph/badge.svg
8+
:target: https://codecov.io/gh/miguelgrinberg/python-socketio
69

710
Python implementation of the `Socket.IO`_ realtime client and server.
811

tox.ini

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
[tox]
2-
envlist=flake8,py35,py36,py37,py38,pypy3,docs
2+
envlist=flake8,py36,py37,py38,py39,pypy3,docs
33
skip_missing_interpreters=True
44

5+
[gh-actions]
6+
python =
7+
3.6: py36
8+
3.7: py37
9+
3.8: py38
10+
3.9: py39
11+
pypy3: pypy3
12+
513
[testenv]
614
commands=
715
pytest -p no:logging --cov=socketio --cov-branch --cov-report=term-missing
816
deps=
917
pytest
1018
pytest-cov
1119
mock
12-
basepython =
13-
flake8: python3.8
14-
py35: python3.5
15-
py36: python3.6
16-
py37: python3.7
17-
py38: python3.8
18-
pypy3: pypy3
19-
docs: python3.8
20-
coverage: python3.8
2120

2221
[testenv:flake8]
2322
deps=

0 commit comments

Comments
 (0)