-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
35 lines (34 loc) · 968 Bytes
/
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
[tox]
envlist =
test{,-jwst,-tweakwcs}
[testenv]
description =
run tests
change_dir =
jwst,tweakwcs: {env_tmp_dir}
extras =
test
allowlist_externals =
git
jwst,tweakwcs: bash
use_develop = true
pass_env =
CI
set_env =
jwst: CRDS_SERVER_URL = https://jwst-crds.stsci.edu
jwst: CRDS_PATH = {package_root}/crds_cache
jwst: CRDS_CLIENT_RETRY_COUNT = 3
jwst: CRDS_CLIENT_RETRY_DELAY_SECONDS = 20
commands_pre =
jwst,tweakwcs: bash -c "pip freeze -q | grep 'stsci.stimage @' > {env_tmp_dir}/requirements.txt"
jwst: git clone https://github.com/spacetelescope/jwst.git
tweakwcs: git clone https://github.com/spacetelescope/tweakwcs.git
jwst: pip install -e jwst[test]
tweakwcs: pip install -e tweakwcs[test]
jwst,tweakwcs: pip install -r {env_tmp_dir}/requirements.txt
pip freeze
commands =
pytest \
jwst: jwst/jwst/outlier_detection jwst/jwst/resample \
tweakwcs: tweakwcs \
{posargs}