Skip to content

Commit

Permalink
Add tox support for test and verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Oct 6, 2021
1 parent 90acae7 commit e5e351f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea
.tox
venv/
__pycache__/*
venv/
docs/_build/*
.coverage
*.egg-info/
Expand Down
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ os:
python:
- '3.7'
- '3.8'
- '3.9'
jobs:
include:
- python: '3.7'
env: PYENV=py37
- python: '3.8'
env: PYENV=py38
- python: '3.9'
env: PYENV=py39
install:
- pip install --upgrade pip
- pip install setuptools
- pip install -r test-requirements.txt
- pip install --upgrade setuptools
- pip install coveralls
- pip install -e .
- pip list
script:
- python setup.py test
- coverage run --source="crc" setup.py test
- tox -e$PYENV
after_success: coveralls
deploy:
provider: pypi
Expand Down
9 changes: 5 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ environment:
- python_version: "C:\\Python37-x64"
- python_version: "C:\\Python38"
- python_version: "C:\\Python38-x64"
- python_version: "C:\\Python39"
- python_version: "C:\\Python39-x64"

install:
- "SET PATH=%python_version%;%python_version%\\Scripts;%PATH%"
- "pip install setuptools"
- "pip install --upgrade pip"
- "pip install --upgrade setuptools"
- "pip install -e ."
- "pip list"
- "pip install -r test-requirements.txt"

test_script:
- "python setup.py test"
- "tox"

build: off
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
setuptools
coveralls
tox
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[tox]
envlist = py37, py38, py39

[testenv]
deps =
-rtest-requirements.txt

commands =
{envpython} setup.py test
coverage run --source="crc" setup.py test

0 comments on commit e5e351f

Please sign in to comment.