Skip to content

Commit

Permalink
Merge pull request #60 from NextThought/gha
Browse files Browse the repository at this point in the history
Move to GitHub Actions and add Python 3.9
  • Loading branch information
jamadden committed May 6, 2021
2 parents 0513449 + cab5ba0 commit d0e5eea
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
@@ -1,6 +1,8 @@
[run]
source = nti.schema
omit = src/nti/schema/tests/*benchmark.py
# New in 5.0; required for the GHA coveralls submission.
relative_files = True

[report]
# Coverage is run on Linux under cPython 2 and 3,
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,51 @@
name: tests

on: [push, pull_request]

env:
PYTHONHASHSEED: 1042466059
ZOPE_INTERFACE_STRICT_IRO: 1


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-${{ matrix.python-version }}-${{ hashFiles('setup.*') }}
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U coverage
python -m pip install -U -e ".[test,docs]"
- name: Test
run: |
coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress
coverage run -a -m sphinx -b doctest -d docs/_build/doctrees docs docs/_build/doctests
coverage report -i
- 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
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions CHANGES.rst
Expand Up @@ -2,10 +2,12 @@
Changes
=========

1.15.2 (unreleased)
1.16.0 (unreleased)
===================

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

- Drop support for Python 3.5.


1.15.1 (2020-07-02)
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Expand Up @@ -5,7 +5,6 @@ include LICENSE
include babel.cfg
include nose2.cfg
include tox.ini
include .travis.yml
include .coveragerc
include .isort.cfg

Expand All @@ -19,3 +18,4 @@ recursive-include docs *.rst
recursive-include docs Makefile
recursive-exclude docs changelog.rst
recursive-include benchmarks *.py
recursive-include .github *.yml
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -10,8 +10,8 @@
:target: https://pypi.org/project/nti.schema/
:alt: Supported Python versions

.. image:: https://travis-ci.org/NextThought/nti.schema.svg?branch=master
:target: https://travis-ci.org/NextThought/nti.schema
.. image:: https://github.com/NextThought/nti.zope_catalog/workflows/tests/badge.svg
:target: https://github.com/NextThought/nti.zope_catalog/actions?query=workflow%3Atests

.. image:: https://coveralls.io/repos/github/NextThought/nti.schema/badge.svg
:target: https://coveralls.io/github/NextThought/nti.schema
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -36,10 +36,10 @@ def _read(fname):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'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',
'Framework :: Zope3',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = pypy,py27,py35,py36,pypy3,py37,py38,coverage,docs
envlist = pypy,py27,py36,pypy3,py37,py38,py39,coverage,docs

[testenv]
deps =
Expand Down

0 comments on commit d0e5eea

Please sign in to comment.