Skip to content

Commit

Permalink
move to github actions (#43)
Browse files Browse the repository at this point in the history
* move to github actions

* tox -v

* test in pypy3 too

* [gh-actions]

* right?

* and readme
  • Loading branch information
peterbe authored Dec 15, 2020
1 parent 9f1ef56 commit f8c8a09
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 29 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Based on
# https://pypi.org/project/tox-gh-actions/

name: Python

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, "pypy3"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox -v
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

8 changes: 2 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@ django-cache-memoize

* License: MPL 2.0

.. image:: https://travis-ci.org/peterbe/django-cache-memoize.svg?branch=master
.. image:: https://github.com/peterbe/django-cache-memoize/workflows/Python/badge.svg
:alt: Build Status
:target: https://travis-ci.org/peterbe/django-cache-memoize
:target: https://github.com/peterbe/django-cache-memoize/actions?query=workflow%3APython

.. image:: https://readthedocs.org/projects/django-cache-memoize/badge/?version=latest
:alt: Documentation Status
:target: https://django-cache-memoize.readthedocs.io/en/latest/?badge=latest

.. image:: https://codecov.io/gh/peterbe/django-cache-memoize/branch/master/graph/badge.svg
:alt: Code Coverage
:target: https://codecov.io/gh/peterbe/django-cache-memoize

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black

Expand Down
17 changes: 8 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[tox]
skipsdist = True
usedevelop = True
minversion = 1.8
envlist =
lint-py36,
readme-py36,
Expand All @@ -12,13 +9,15 @@ envlist =
py38-django{22,30},
pypy3-django{111,20,21,22},

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38, lint, restlint
pypy3: pypy3

[testenv]
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
pypy3: pypy3
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
Expand Down

0 comments on commit f8c8a09

Please sign in to comment.