Skip to content

Commit

Permalink
migrate CI to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
belm0 committed Mar 11, 2023
1 parent 166bdbb commit c9e20f8
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 54 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:

jobs:
build_and_test_pinned:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10'] # 'pypy-3.7'
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements-dev.txt'
- run: pip install . -r requirements-dev.txt
- run: make test
- run: make lint

build_and_test_latest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- run: pip install . -r requirements-dev.in
- run: make test
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PYTHON = python
# product:
.PHONY: docs

coverage:
$(PYTHON) -m coveralls -v

docs:
$(MAKE) -C docs html

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ available here](https://trio-websocket.readthedocs.io).

[![PyPI](https://img.shields.io/pypi/v/trio-websocket.svg?style=flat-square)](https://pypi.org/project/trio-websocket/)
![Python Versions](https://img.shields.io/pypi/pyversions/trio-websocket.svg?style=flat-square)
![MIT License](https://img.shields.io/github/license/HyperionGray/trio-websocket.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/HyperionGray/trio-websocket.svg?style=flat-square&branch=master)](https://travis-ci.com/HyperionGray/trio-websocket)
[![Coverage](https://img.shields.io/coveralls/github/HyperionGray/trio-websocket.svg?style=flat-square)](https://coveralls.io/github/HyperionGray/trio-websocket?branch=master)
[![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)
[![Read the Docs](https://img.shields.io/readthedocs/trio-websocket.svg)](https://trio-websocket.readthedocs.io)

## Alternatives
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
attrs>=19.2.0
coveralls
pip-tools>=5.5.0
pylint
pytest>=4.6
Expand Down
6 changes: 0 additions & 6 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,11 @@ click==8.1.3
# via pip-tools
coverage[toml]==6.5.0
# via
# coveralls
# pytest-cov
coveralls==3.3.1
# via -r requirements-dev.in
cryptography==39.0.2
# via trustme
dill==0.3.6
# via pylint
docopt==0.6.2
# via coveralls
docutils==0.18.1
# via
# readme-renderer
Expand Down Expand Up @@ -138,7 +133,6 @@ readme-renderer==37.3
# via twine
requests==2.28.2
# via
# coveralls
# requests-toolbelt
# sphinx
# twine
Expand Down
7 changes: 0 additions & 7 deletions requirements-min.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,11 @@ contextvars==2.4
# trio
coverage[toml]==6.2
# via
# coveralls
# pytest-cov
coveralls==3.3.1
# via -r requirements-dev.in
cryptography==3.3.2
# via trustme
dataclasses==0.8
# via wsproto
docopt==0.6.2
# via coveralls
h11==0.12.0
# via wsproto
idna==3.3
Expand Down Expand Up @@ -83,8 +78,6 @@ pytest-cov==3.0.0
# via -r requirements-dev.in
pytest-trio==0.7.0
# via -r requirements-dev.in
requests==2.27.1
# via coveralls
sniffio==1.2.0
# via trio
sortedcontainers==2.4.0
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
Expand Down

0 comments on commit c9e20f8

Please sign in to comment.