Skip to content

Commit

Permalink
Merge pull request #52 from NextThought/GHA
Browse files Browse the repository at this point in the history
Move to Github Actions. Add Python 3.9, remove Python 3.5
  • Loading branch information
jamadden committed Mar 31, 2021
2 parents cbef079 + 1ad37ea commit 76edcd9
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 47 deletions.
4 changes: 3 additions & 1 deletion .coveragerc
@@ -1,5 +1,7 @@
[run]
source = src
source = sphinxcontrib.programoutput
# New in 5.0; required for the GHA coveralls submission.
relative_files = True

[report]
exclude_lines =
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,53 @@
name: tests

on: [push, pull_request]

env:
PYTHONHASHSEED: 1042466059
ZOPE_INTERFACE_STRICT_IRO: 1
PYTHONWARNINGS: "ignore:'U' mode is deprecated:DeprecationWarning::"


jobs:
test:
strategy:
matrix:
python-version: [2.7, pypy2, pypy3, 3.6, 3.7, 3.8, 3.9]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.*') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U coverage pylint
python -m pip install -U -e ".[test]"
- name: Test
run: |
pylint -r no src/sphinxcontrib
coverage run -m unittest discover -s src
- name: Submit to Coveralls
# This is a container action, which only runs on Linux.
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true

coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions CHANGES.rst
Expand Up @@ -5,14 +5,16 @@
0.17 (unreleased)
=================

- Nothing changed yet.
- Add support for Python 3.9.

- Drop support for python 3.5.


0.16 (2020-03-23)
=================

- Add ``name`` and ``caption`` options. Added in
`PR 41 <https://github.com/NextThought/sphinxcontrib-programoutput/pull/41>`_
`PR 41 <https://github.com/NextThought/sphinxcontrib-programoutput/pull/41>`_
by Raphaël.
- Add support for Python 3.8.

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -2,8 +2,8 @@
sphinxcontrib-programoutput
=============================

.. image:: https://secure.travis-ci.org/NextThought/sphinxcontrib-programoutput.png
:target: http://travis-ci.org/NextThought/sphinxcontrib-programoutput
.. image:: https://github.com/NextThought/sphinxcontrib-programoutput/workflows/tests/badge.svg
:target: https://github.com/NextThought/sphinxcontrib-programoutput/actions?query=workflow%3Atests

.. image:: https://coveralls.io/repos/github/NextThought/sphinxcontrib-programoutput/badge.svg
:target: https://coveralls.io/github/NextThought/sphinxcontrib-programoutput
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -70,10 +70,10 @@ def read_version_number():
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
'Topic :: Documentation',
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist=py27,py27-old,py36,py37,py38,pypy,doc,coverage
envlist=py27,py27-old,py36,py37,py38,py39,pypy,doc,coverage

[testenv]
usedevelop = true
Expand All @@ -19,7 +19,7 @@ commands =
coverage combine
coverage html -i
coverage report -i --fail-under=100
depends = py27, py27-old, py36, py37, py38, pypy
depends = py27, py27-old, py36, py37, py38, py39, pypy
parallel_show_output = true

[testenv:doc]
Expand Down

0 comments on commit 76edcd9

Please sign in to comment.