Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ envlist =
build_docs
linkcheck
codestyle
import_only

requires =
setuptools >= 30.3.0
pip >= 19.3.1
Expand Down Expand Up @@ -53,7 +55,6 @@ description =
double: twice in a row to check for global state changes

deps =

numpy116: numpy==1.16.*
numpy117: numpy==1.17.*
numpy118: numpy==1.18.*
Expand Down Expand Up @@ -84,6 +85,14 @@ commands =
cov-!double: pytest --pyargs astropy {toxinidir}/docs {env:MPLFLAGS} --cov astropy --cov-config={toxinidir}/setup.cfg {posargs}
double: python -c 'import sys; from astropy import test; test(); sys.exit(test())'

[testenv:import_only]
description = testing importability without optional dependencies
commands =
pip uninstall -q pytest # Remove line once pytest is not installed with tox-pypi-filter from the pin file
pip freeze
wget https://raw.githubusercontent.com/astropy/ci-helpers/master/utils/import_submodules.py
python import_submodules.py astropy tests,extern,setup_package,astropy.utils.compat.numpy

[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
Expand Down