-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
56 lines (52 loc) · 1.79 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
49
50
51
52
53
54
55
56
[tox]
envlist =
py{38,39,310,311,312}-test{,-osxclang,-linuxgcc}{,-conda}{,-devdeps}
py{38,39,310,311,312}-downstream
style
# conda jobs need this because it is pulling in tox 3, not 4
isolated_build = true
[testenv]
passenv =
CONDA_BUILD_SYSROOT,CI
setenv =
osxclang: CC=clang-10
linuxgcc: CC=gcc_linux-64
changedir =
test: .tmp/{envname}
whitelist_externals =
devdeps: bash
description =
test: run tests with pytest
devdeps: run tests with developer versions of setuptools
oldestdeps: run tests with oldest supported version of setuptools
deps =
oldestdeps: setuptools==42.0
devdeps: git+https://github.com/pypa/setuptools.git
conda_deps =
osxclang: clang_osx-64==10
osxclang: llvm-openmp
linuxgcc: gcc_linux-64
conda_channels =
linuxgcc: conda-forge
extras =
test: test
commands =
pip freeze
test: python -c 'import setuptools; print(setuptools.__version__)'
test: pytest --pyargs extension_helpers {toxinidir}/docs --cov extension_helpers --cov-config={toxinidir}/pyproject.toml {posargs}
[testenv:py{38,39,310,311,312}-downstream]
changedir = .tmp/downstream
commands =
pip install setuptools setuptools_scm wheel cython numpy
pip install --no-build-isolation "astropy[test] @ git+https://github.com/astropy/astropy.git"
pytest --pyargs astropy -m "not hypothesis" -Wdefault
pip install --no-build-isolation "sunpy[all,tests] @ git+https://github.com/sunpy/sunpy.git"
pip freeze
pytest --pyargs sunpy -k "not test_saveframe and not test_hpc_observer_version and not test_hcc_observer_version and not test_simple_write_compressed_difftypeinst" -Wdefault
[testenv:style]
skip_install = true
deps =
pre-commit
commands =
pre-commit install-hooks
pre-commit run --color always --all-files --show-diff-on-failure