Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ 3.5, 3.6, 3.7, 3.8 ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
pip install django-honeypot
pip install tox tox-gh-actions
- name: Run tests
run: tox
- name: Coverage
if: ${{ matrix.python == 3.8 }}
run: |
pip install coverage[toml]
coverage run runtests.py
- name: Upload coverage
if: ${{ matrix.python == 3.8 }}
uses: codecov/codecov-action@v1
with:
name: Python ${{ matrix.python }}
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ django-envelope
:target: https://pypi.python.org/pypi/django-envelope/
:alt: Wheel Status

.. image:: https://travis-ci.org/zsiciarz/django-envelope.png?branch=develop
:target: https://travis-ci.org/zsiciarz/django-envelope
.. image:: https://github.com/richardbarran/django-envelope/workflows/CI/badge.svg?branch=github-actions
:target: https://github.com/richardbarran/django-envelope/actions?workflow=CI
:alt: CI Status

.. image:: https://coveralls.io/repos/zsiciarz/django-envelope/badge.png
:target: https://coveralls.io/r/zsiciarz/django-envelope
.. image:: https://codecov.io/gh/richardbarran/django-envelope/branch/github-actions/graph/badge.svg?token=wRYvRp4xQL
:target: https://codecov.io/gh/richardbarran/django-envelope


``django-envelope`` is a simple contact form app for Django web framework.
Expand Down Expand Up @@ -52,7 +53,6 @@ Resources

* `Documentation <http://django-envelope.rtfd.org>`_
* `Issue tracker <https://github.com/zsiciarz/django-envelope/issues>`_
* `CI server <https://travis-ci.org/zsiciarz/django-envelope>`_

Authors
-------
Expand Down
22 changes: 9 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
[tox]
envlist =
{py27,py35,py36}-django111,
{py35,py36}-django111,
{py35,py36,py37,py38}-django22,
{py36,py37,py38}-django{30,master}
{py36,py37,py38}-django{30}

[testenv]
deps=
django111: Django>=1.11,<2.0
django22: Django>=2.2,<3.0
django30: Django>=3.0,<4.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
py{35,36,37,38}: django-honeypot
py27: django-honeypot<0.8
py27: mock==3.0.5
coverage

commands= coverage run ./runtests.py
commands= ./runtests.py

[travis:env]
DJANGO =
1.11: django111
2.2: django22
3.0: django30
master: djangomaster
[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38