Skip to content

Commit a47b6d9

Browse files
authored
upgrade lint-requirements (#118)
* upgrade lint-requirements * adding a GitHub Action * adding note * let's try this * finishing touches * update README
1 parent cd46bfa commit a47b6d9

File tree

5 files changed

+41
-22
lines changed

5 files changed

+41
-22
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: [2.7, 3.5, 3.6, 3.7, 3.8]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
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

.travis.yml

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

README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
hashin
33
======
44

5-
.. image:: https://travis-ci.org/peterbe/hashin.svg?branch=master
6-
:target: https://travis-ci.org/peterbe/hashin
5+
.. image:: https://github.com/peterbe/hashin/workflows/Python/badge.svg
6+
:target: https://github.com/peterbe/hashin/actions
77

88
.. image:: https://badge.fury.io/py/hashin.svg
99
:target: https://pypi.python.org/pypi/hashin
@@ -270,6 +270,10 @@ put it directly into ``pip``.
270270
Version History
271271
===============
272272

273+
* Switch to GitHub Actions instead of TravisCI. And test ``tox`` in
274+
Python 3.7 and 3.8 additionally as well as upgrading lint requirements.
275+
See https://github.com/peterbe/hashin/pull/118
276+
273277
0.15.0
274278
* Use of underscore or hyphens in package names is corrected
275279
See https://github.com/peterbe/hashin/issues/116 Thanks @caphrim007

lint-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
flake8==3.6.0
2-
black==18.9b0
3-
therapist==1.6.0
1+
flake8==3.8.3
2+
black==19.10b0
3+
therapist==2.0.1

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tox]
2-
envlist = py{27,34,35,36,37}, lint, restlint
2+
envlist = py{27,34,35,36,37,38}, lint, restlint
33

4-
[travis]
4+
[gh-actions]
55
python =
66
2.7: py27
7-
3.4: py34
87
3.5: py35
9-
3.6: py36, lint, restlint
10-
3.7: py37, lint, restlint
8+
3.6: py36
9+
3.7: py37
10+
3.8: py38, lint, restlint
1111

1212
[testenv]
1313
usedevelop = True

0 commit comments

Comments
 (0)