-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrelease_tox.ini
80 lines (73 loc) · 2.68 KB
/
release_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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
# Use conda to set up the python environments to run in
requires = tox-conda
# The python environments to run the tests in
envlist = pypi-py38-min,conda-py38-old-np,{pypi,conda}-{py38,py39,py310,py311},pypisource-{py38,py311}
# Skip the execution of setup.py as we do it with the correct version in commands_pre below
skipsdist = True
[testenv]
changedir = tests_and_analysis/test
test_command = python run_tests.py --report
# Test PyPI source distribution
[testenv:pypisource-{py38,py311}]
install_command = python -m pip install {opts} {packages}
deps =
numpy
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install \
--force-reinstall \
'euphonic[matplotlib,phonopy_reader,brille]=={env:EUPHONIC_VERSION}' \
--no-binary 'euphonic'
commands = {[testenv]test_command}
[testenv:pypi-{py38,py39,py310,py311}]
install_command = python -m pip install {opts} {packages}
deps =
numpy
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install \
--force-reinstall \
'euphonic[matplotlib,phonopy_reader,brille]=={env:EUPHONIC_VERSION}' \
--only-binary 'euphonic'
commands = {[testenv]test_command}
[testenv:pypi-py38-min]
install_command = python -m pip install --force-reinstall {opts} {packages}
deps =
numpy==1.19.5
commands_pre =
python -m pip install --force-reinstall \
-r{toxinidir}/tests_and_analysis/minimum_euphonic_requirements.txt
python -m pip install --force-reinstall \
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
python -m pip install \
'euphonic[matplotlib,phonopy_reader,brille]=={env:EUPHONIC_VERSION}' \
--only-binary 'euphonic'
commands = {[testenv]test_command}
[testenv:conda-{py38,py39,py310,py311}]
whitelist_externals = conda
install_command = conda install {packages}
conda_channels =
conda-forge
default
conda_deps =
--file={toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
conda install -c conda-forge euphonic={env:EUPHONIC_VERSION} matplotlib-base pyyaml h5py
# Brille not available on conda
commands = {[testenv]test_command} -m "not brille"
# Test against a version of Numpy less than the latest for Conda
# See https://github.com/conda-forge/euphonic-feedstock/pull/20
[testenv:conda-py38-old-np]
whitelist_externals = conda
install_command = conda install {packages}
conda_channels =
conda-forge
default
conda_deps =
--file={toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
conda install numpy=1.20
conda install -c conda-forge euphonic={env:EUPHONIC_VERSION} matplotlib-base pyyaml h5py
# Brille not available on conda
commands = {[testenv]test_command} -m "not brille"