Skip to content

Commit

Permalink
use GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jugmac00 committed Jan 23, 2021
1 parent c725d85 commit f44d2d6
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 46 deletions.
13 changes: 11 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
repos:
- repo: https://github.com/psf/black
rev: stable
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
args: [--line-length=80]
- repo: https://gitlab.com/pycqa/flake8
rev: "3.8.4"
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
hooks:
- id: pyupgrade
args: [--py36-plus]
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ CHANGES

- Drop support for Python 3.4 and 3.5.

- Add support for Python 3.9.

- Use GitHub Actions for CI.


0.3 (2020-04-26)
----------------
Expand Down
2 changes: 2 additions & 0 deletions CREDITS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ CREDITS
=======

* Henri Hulski (author)

* Jürgen Gmach (CI)
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
.. image:: https://github.com/morepath/more.pony/workflows/CI/badge.svg?branch=master
:target: https://github.com/morepath/more.pony/actions?workflow=CI
:alt: CI Status

.. image:: https://coveralls.io/repos/github/morepath/more.pony/badge.svg?branch=master
:target: https://coveralls.io/github/morepath/more.pony?branch=master

.. image:: https://img.shields.io/pypi/v/more.pony.svg
:target: https://pypi.org/project/more.pony/

.. image:: https://img.shields.io/pypi/pyversions/more.pony.svg
:target: https://pypi.org/project/more.pony/


more.pony: Pony ORM integration in Morepath
===========================================

Expand Down
15 changes: 0 additions & 15 deletions pyproject.toml

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: PyPy",
],
install_requires=["morepath >= 0.19", "pony >= 0.7.13"],
Expand Down
27 changes: 18 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[tox]
envlist = py36, py37, py38, pypy3, pep8, coverage
skipsdist = True
envlist = py36, py37, py38, py39, pypy3, pre-commit, coverage
skip_missing_interpreters = True

[testenv]
Expand All @@ -9,16 +8,26 @@ extras = test

commands = pytest {posargs}

[testenv:pep8]
basepython = python3.7
extras = pep8

commands = flake8 more
black --check .
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files

[testenv:coverage]
basepython = python3.7
basepython = python3
extras = test
coverage

commands = pytest --cov --cov-fail-under=100 {posargs}

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, pre-commit, mypy, coverage

[flake8]
max-line-length = 88
ignore =
E231 # clashes with black
W503

0 comments on commit f44d2d6

Please sign in to comment.