-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathtox.ini
48 lines (38 loc) · 1.48 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist =
py{39,310,311,312}-test{,-oldestdeps,-devdeps,-predeps}{,-buildhtml}
requires =
setuptools >= 30.3.0
pip >= 19.3.1
[testenv]
description = run tests
deps =
# We use these files to specify all the dependencies, and below we override
# versions for specific testing schenarios
-r.binder/requirements.txt
-rdoc-requirements.txt
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo
devdeps: git+https://github.com/astropy/astroquery.git#egg=astroquery
oldestdeps: numpy==1.24
oldestdeps: astropy==5.2
# We need 0.4.7dev that has a fix to the caching, thus no oldest version atm
# oldestdeps: astroquery==0.4.7
oldestdeps: matplotlib==3.2
oldestdeps: pyvo==1.4.2
oldestdeps: scipy==1.6
# Temporary fix for lexer errors
ipython!=8.7.0
!buildhtml: pytest-custom_exit_code
allowlist_externals = bash
commands =
pip freeze
!buildhtml: bash -c 'find content -name "*.md" | xargs jupytext --to notebook '
# We rerun the failed tests hoping that it filters out some flaky server behaviour
!buildhtml: pytest --nbval --suppress-tests-failed-exit-code content/
!buildhtml: pytest --nbval --last-failed --last-failed-no-failures none --suppress-no-test-exit-code content/
buildhtml: sphinx-build -b html . _build/html -D nb_execution_mode=auto -nWT --keep-going
pip_pre =
predeps: true
!predeps: false
skip_install = true