Skip to content

Commit f8c8a09

Browse files
authored
move to github actions (#43)
* move to github actions * tox -v * test in pypy3 too * [gh-actions] * right? * and readme
1 parent 9f1ef56 commit f8c8a09

File tree

4 files changed

+37
-29
lines changed

4 files changed

+37
-29
lines changed

.github/workflows/python.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Based on
2+
# https://pypi.org/project/tox-gh-actions/
3+
4+
name: Python
5+
6+
on: [push]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
max-parallel: 4
13+
matrix:
14+
python-version: [3.5, 3.6, 3.7, 3.8, "pypy3"]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install tox tox-gh-actions
26+
- name: Test with tox
27+
run: tox -v

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@ django-cache-memoize
44

55
* License: MPL 2.0
66

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

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

15-
.. image:: https://codecov.io/gh/peterbe/django-cache-memoize/branch/master/graph/badge.svg
16-
:alt: Code Coverage
17-
:target: https://codecov.io/gh/peterbe/django-cache-memoize
18-
1915
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
2016
:target: https://github.com/ambv/black
2117

tox.ini

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
[tox]
2-
skipsdist = True
3-
usedevelop = True
4-
minversion = 1.8
52
envlist =
63
lint-py36,
74
readme-py36,
@@ -12,13 +9,15 @@ envlist =
129
py38-django{22,30},
1310
pypy3-django{111,20,21,22},
1411

12+
[gh-actions]
13+
python =
14+
3.5: py35
15+
3.6: py36
16+
3.7: py37
17+
3.8: py38, lint, restlint
18+
pypy3: pypy3
19+
1520
[testenv]
16-
basepython =
17-
py35: python3.5
18-
py36: python3.6
19-
py37: python3.7
20-
py38: python3.8
21-
pypy3: pypy3
2221
usedevelop = true
2322
setenv =
2423
DJANGO_SETTINGS_MODULE = tests.settings

0 commit comments

Comments
 (0)