diff --git a/.travis.yml b/.travis.yml index 8b67537..5ec5e32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,9 @@ cache: pip install: - python setup.py sdist - python setup.py install - - pip install pytest>=4.4.0 pytest-cov requests coveralls codacy-coverage + - pip install pytest pytest-cov pytest-xdist requests coveralls codacy-coverage + - pip install --ignore-installed pytest>=4.4.0 + - pytest --version script: - python setup.py test -a '--cov-config .coveragerc --cov=json_to_models -m "not no_expected" test/' diff --git a/setup.py b/setup.py index 0929a37..18c5e88 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,6 @@ def run_tests(self): }, install_requires=required, cmdclass={"test": PyTest}, - tests_require=["pytest", "pytest-xdist", "requests", "attrs"], + tests_require=["pytest>=4.4.0", "pytest-xdist", "requests", "attrs"], data_files=[('', ['pytest.ini', '.coveragerc', 'LICENSE'])] )