Skip to content

Commit c9e20f8

Browse files
committed
migrate CI to github actions
1 parent 166bdbb commit c9e20f8

File tree

8 files changed

+44
-54
lines changed

8 files changed

+44
-54
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "dependabot/**"
7+
pull_request:
8+
9+
jobs:
10+
build_and_test_pinned:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
python-version: ['3.7', '3.8', '3.9', '3.10'] # 'pypy-3.7'
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Setup Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: 'requirements-dev.txt'
24+
- run: pip install . -r requirements-dev.txt
25+
- run: make test
26+
- run: make lint
27+
28+
build_and_test_latest:
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
matrix:
32+
os: [ubuntu-latest]
33+
python-version: ['3.11']
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Setup Python
37+
uses: actions/setup-python@v3
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- run: pip install . -r requirements-dev.in
41+
- run: make test

.travis.yml

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

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PYTHON = python
44
# product:
55
.PHONY: docs
66

7-
coverage:
8-
$(PYTHON) -m coveralls -v
9-
107
docs:
118
$(MAKE) -C docs html
129

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ available here](https://trio-websocket.readthedocs.io).
1515

1616
[![PyPI](https://img.shields.io/pypi/v/trio-websocket.svg?style=flat-square)](https://pypi.org/project/trio-websocket/)
1717
![Python Versions](https://img.shields.io/pypi/pyversions/trio-websocket.svg?style=flat-square)
18-
![MIT License](https://img.shields.io/github/license/HyperionGray/trio-websocket.svg?style=flat-square)
19-
[![Build Status](https://img.shields.io/travis/com/HyperionGray/trio-websocket.svg?style=flat-square&branch=master)](https://travis-ci.com/HyperionGray/trio-websocket)
20-
[![Coverage](https://img.shields.io/coveralls/github/HyperionGray/trio-websocket.svg?style=flat-square)](https://coveralls.io/github/HyperionGray/trio-websocket?branch=master)
18+
[![Build Status](https://img.shields.io/github/actions/workflow/status/HyperionGray/trio-websocket/ci.yml)](https://github.com/HyperionGray/trio-websocket/actions/workflows/ci.yml)
2119
[![Read the Docs](https://img.shields.io/readthedocs/trio-websocket.svg)](https://trio-websocket.readthedocs.io)
2220

2321
## Alternatives

requirements-dev.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
attrs>=19.2.0
2-
coveralls
32
pip-tools>=5.5.0
43
pylint
54
pytest>=4.6

requirements-dev.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,11 @@ click==8.1.3
3434
# via pip-tools
3535
coverage[toml]==6.5.0
3636
# via
37-
# coveralls
3837
# pytest-cov
39-
coveralls==3.3.1
40-
# via -r requirements-dev.in
4138
cryptography==39.0.2
4239
# via trustme
4340
dill==0.3.6
4441
# via pylint
45-
docopt==0.6.2
46-
# via coveralls
4742
docutils==0.18.1
4843
# via
4944
# readme-renderer
@@ -138,7 +133,6 @@ readme-renderer==37.3
138133
# via twine
139134
requests==2.28.2
140135
# via
141-
# coveralls
142136
# requests-toolbelt
143137
# sphinx
144138
# twine

requirements-min.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,11 @@ contextvars==2.4
2929
# trio
3030
coverage[toml]==6.2
3131
# via
32-
# coveralls
3332
# pytest-cov
34-
coveralls==3.3.1
35-
# via -r requirements-dev.in
3633
cryptography==3.3.2
3734
# via trustme
3835
dataclasses==0.8
3936
# via wsproto
40-
docopt==0.6.2
41-
# via coveralls
4237
h11==0.12.0
4338
# via wsproto
4439
idna==3.3
@@ -83,8 +78,6 @@ pytest-cov==3.0.0
8378
# via -r requirements-dev.in
8479
pytest-trio==0.7.0
8580
# via -r requirements-dev.in
86-
requests==2.27.1
87-
# via coveralls
8881
sniffio==1.2.0
8982
# via trio
9083
sortedcontainers==2.4.0

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
'Programming Language :: Python :: 3.7',
3333
'Programming Language :: Python :: 3.8',
3434
'Programming Language :: Python :: 3.9',
35+
'Programming Language :: Python :: 3.10',
36+
'Programming Language :: Python :: 3.11',
3537
'Programming Language :: Python :: Implementation :: CPython',
3638
'Programming Language :: Python :: Implementation :: PyPy',
3739
],

0 commit comments

Comments
 (0)