Skip to content

Commit 22dd252

Browse files
Kriechipgjones
authored andcommitted
replace TravisCI with GitHub Actions
1 parent 06aa5c9 commit 22dd252

File tree

17 files changed

+141
-127
lines changed

17 files changed

+141
-127
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

.coveragerc

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

.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: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
tox:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
max-parallel: 5
14+
matrix:
15+
python-version:
16+
- 3.6
17+
- 3.7
18+
- 3.8
19+
- pypy3
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install tox
27+
run: |
28+
python -m pip install --upgrade pip setuptools
29+
pip install --upgrade tox tox-gh-actions
30+
- name: Install h2spec
31+
run: |
32+
.github/workflows/install_h2spec.sh
33+
- name: Initialize tox envs
34+
run: |
35+
tox --parallel auto --notest
36+
- name: Test with tox
37+
run: |
38+
tox --parallel 0
39+
- uses: codecov/codecov-action@v1
40+
with:
41+
file: ./coverage.xml

.github/workflows/install_h2spec.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
# For some reason it helps to have this here.
7+
echo $(curl -s https://api.github.com/repos/summerwind/h2spec/releases/latest)
8+
9+
# We want to get the latest release of h2spec. We do that by asking the
10+
# Github API for it, and then parsing the JSON for the appropriate kind of
11+
# binary. Happily, the binary is always called "h2spec" so we don't need
12+
# even more shenanigans to get this to work.
13+
TARBALL=$(curl -s https://api.github.com/repos/summerwind/h2spec/releases/latest | jq --raw-output '.assets[] | .browser_download_url | select(endswith("linux_amd64.tar.gz"))')
14+
15+
curl -s -L "$TARBALL" -o h2spec.tgz
16+
tar xvf h2spec.tgz
17+
mkdir bin
18+
mv h2spec ./bin/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dist/
55
*.pyc
66
__pycache__
77
.coverage
8+
coverage.xml
89
.tox/
910
.hypothesis/
1011
.cache/

.travis.yml

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

MANIFEST.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
include README.rst LICENSE CONTRIBUTORS.rst HISTORY.rst tox.ini test_requirements.txt .coveragerc Makefile
2-
recursive-include test *.py *.sh
1+
graft h2
32
graft docs
4-
prune docs/build
3+
graft test
54
graft visualizer
5+
graft examples
6+
prune docs/build
67
recursive-include examples *.py *.crt *.key *.pem *.csr
78
recursive-include utils *.sh
8-
recursive-include _travis *.sh
9+
include README.rst LICENSE CONTRIBUTORS.rst HISTORY.rst tox.ini test_requirements.txt .coveragerc Makefile
10+
global-exclude *.pyc *.pyo *.swo *.swp *.map *.yml *.DS_Store

README.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,20 @@
22
hyper-h2: HTTP/2 Protocol Stack
33
===============================
44

5-
.. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png
5+
.. image:: https://github.com/python-hyper/hyper-h2/workflows/CI/badge.svg
6+
:target: https://github.com/python-hyper/hyper-h2/actions
7+
:alt: Build Status
8+
.. image:: https://codecov.io/gh/python-hyper/hyper-h2/branch/master/graph/badge.svg
9+
:target: https://codecov.io/gh/python-hyper/hyper-h2
10+
:alt: Code Coverage
11+
.. image:: https://readthedocs.org/projects/hyper-h2/badge/?version=latest
12+
:target: https://hyper-h2.readthedocs.io/en/latest/
13+
:alt: Documentation Status
14+
.. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg
15+
:target: https://gitter.im/python-hyper/community
16+
:alt: Chat community
617

7-
.. image:: https://travis-ci.org/python-hyper/hyper-h2.svg?branch=master
8-
:target: https://travis-ci.org/python-hyper/hyper-h2
18+
.. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png
919

1020
This repository contains a pure-Python implementation of a HTTP/2 protocol
1121
stack. It's written from the ground up to be embeddable in whatever program you

_travis/install.sh

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

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264

265265
# Example configuration for intersphinx: refer to the Python standard library.
266266
intersphinx_mapping = {
267-
'python': ('https://docs.python.org/3.5/', None),
268-
'hpack': ('https://python-hyper.org/hpack/en/stable/', None),
267+
'python': ('https://docs.python.org/', None),
268+
'hpack': ('https://hpack.readthedocs.io/en/stable/', None),
269269
'pyopenssl': ('https://pyopenssl.readthedocs.org/en/latest/', None),
270270
}

0 commit comments

Comments
 (0)