Skip to content

Commit

Permalink
Add CI support.
Browse files Browse the repository at this point in the history
  • Loading branch information
don4get committed Jan 14, 2020
1 parent 27dbdcf commit b953148
Show file tree
Hide file tree
Showing 19 changed files with 871 additions and 78 deletions.
3 changes: 3 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[settings]
line_length = 88
multi_line_output = 3
include_trailing_comma = True
known_third_party = PyQt5,pytest,setuptools
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
hooks:
- id: tests
name: run tests
entry: python -m pytest tests/
entry: pytest tests/
language: system
types: [python]
stages: [push]
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
dist: xenial
language: python
branches:
only:
- master

matrix:
include:
- python: 3.8
env: TOXENV=flake8
- python: 3.8
env: TOXENV=black
- python: 3.8
env: TOXENV=mypy

- python: 3.6
env: TOXENV=py36

- python: 3.7
env: TOXENV=py37
- python: 3.7

- python: 3.8
env: TOXENV=py38

install:
- pip install tox

script:
- tox
- pytest --cov-report term --cov=nodedge
after_success:
- codecov
13 changes: 13 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ include HISTORY.rst
include LICENSE
include README.rst
include requirements.txt
exclude pyproject.toml
include setup.py

include .flake8
include .isort.cfg
include .pre-commit-config.yaml
include requirements_dev.txt
include requirements_docs.txt
include requirements_tests.txt
include tox.ini

recursive-include nodedge/qss *
recursive-include nodedge/resources *
Expand All @@ -13,3 +23,6 @@ recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif

include *.txt
recursive-include nodedge *.cfg
25 changes: 25 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
PyQt5 = "==5.13.1"
pre-commit = "*"
isort = "*"
black = "==19.3b0"
mypy = "*"
PyQt5-stubs = "==5.13.1.4"
pytest = "*"
pytest-qt = "*"
tox = "*"
coverage = "*"
pytest-cov = "*"
sphinx-rtd-theme = "*"
Sphinx = "*"
codecov = "*"

[requires]
python_version = "3.6"

0 comments on commit b953148

Please sign in to comment.