Skip to content

Commit

Permalink
Add multiple python versions to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
myslak71 committed Aug 4, 2019
1 parent 1c7d695 commit 95caa82
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@
language: python
sudo: required
dist: xenial
python: "3.7"
python:
- "3.6"
- "3.7"
cache: pip
install:
- pip install .
- pip install -r requirements-dev.txt
jobs:
include:
- stage: "Safety check"
script: make safety
- stage: "Linters"
script: make unittests
- stage: "Tests"
script: make unittests
script:
- make safety
- make lint
- pip install .
- make unittests
after_success: coveralls
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ coverage_html: ## create html coverage report and open it in the default browse
xdg-open htmlcov/index.html

flake8: ## run flake8
flake8 flake8_koles/
flake8 flake8_koles/ --ignore=KOL001,KOL002

lint: mypy flake8 yamllint # run all linters

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

[![Build Status](https://travis-ci.org/myslak71/flake8-koles.svg?branch=master)](https://travis-ci.org/myslak71/flake8-koles)
[![Coverage Status](https://coveralls.io/repos/github/myslak71/flake8-koles/badge.svg?branch=master)](https://coveralls.io/github/myslak71/flake8-koles?branch=master)
![image](https://img.shields.io/badge/python-3.7-blue.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-koles)
![image](https://img.shields.io/badge/version-0.1.2-yellow)
![Requires.io](https://img.shields.io/requires/github/myslak71/flake8-koles)
![GitHub](https://img.shields.io/github/license/myslak71/flake8-koles)

Watch your language young pal!

Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ flake8==3.7.8
flake8-docstrings==1.3.1
flake8-print==3.1.0
flake8-isort==2.7.0
mypy==0.711
mypy==0.720
yamllint==1.16.0

# Testing purposes
########################
pytest==5.0.1
pytest-cov==2.7.1
coveralls==1.8.1
coveralls==1.8.2

# Debugging
########################
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
packages=['flake8_koles'],
package_data={'flake8_koles': ['data/swear_list/*.dat']},
py_modules=['flake8_koles'],
python_requires=">=3.7",
python_requires=">=3.6",
install_requires=install_requires,
entry_points={
'flake8.extension': [
Expand Down

0 comments on commit 95caa82

Please sign in to comment.