diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 21:55:04 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 21:55:04 -0400 |
| commit | 9155a2159f1ed057e657a1418dd9c4f3696223a1 (patch) | |
| tree | afbc6c4901dbb9921e954e32d2fd9eee8278b635 | |
| parent | db06c1b6acb478a9dae36011f001ba4504de9067 (diff) | |
| download | stasis-9155a2159f1ed057e657a1418dd9c4f3696223a1.tar.gz | |
Add GBO test using a modern conda installer
| -rw-r--r-- | tests/data/gbo_ng.ini | 66 | ||||
| -rw-r--r-- | tests/rt_generic_ng_based_on.sh | 30 |
2 files changed, 96 insertions, 0 deletions
diff --git a/tests/data/gbo_ng.ini b/tests/data/gbo_ng.ini new file mode 100644 index 0000000..355e5ee --- /dev/null +++ b/tests/data/gbo_ng.ini @@ -0,0 +1,66 @@ +[meta] +mission = generic +name = GBO +version = 2.4.6 +rc = 1 +final = false +based_on = {{ env:TEST_DATA }}/gbo.yml +python = 3.11 + + +[conda] +installer_name = Miniforge3 +installer_version = 26.3.2-2 +installer_platform = {{env:STASIS_CONDA_PLATFORM}} +installer_arch = {{env:STASIS_CONDA_ARCH}} +installer_baseurl = https://github.com/conda-forge/miniforge/releases/download/{{conda.installer_version}} +;conda_packages = +pip_packages = + firewatch==0.0.4 + gwcs==0.22.1 + tweakwcs==0.9.0 + + +[runtime] +CPPFLAGS = ${CPPFLAGS} -fpermissive +PYTHONUNBUFFERED = 1 + + +[test:firewatch] +repository = https://github.com/astroconda/firewatch +script_setup = + pip install -e '.' +script = + firewatch -c conda-forge -p ${STASIS_CONDA_PLATFORM_SUBDIR} | grep -E ' python-[0-9]' + + +[test:tweakwcs] +repository = https://github.com/spacetelescope/tweakwcs +script_setup = + pip install -e '.[test]' +script = + pytest \ + -r fEsx \ + --basetemp="{{ func:basetemp_dir() }}" \ + --junitxml="{{ func:junitxml_file() }}" + + +[deploy:artifactory:delivery] +files = + {{ storage.output_dir }}/** +dest = {{ meta.mission }}/{{ info.build_name }}/ + + +[deploy:docker] +registry = bytesalad.stsci.edu +image_compression = zstd -v -9 -c +build_args = + SNAPSHOT_INPUT={{ info.release_name }}.yml + SNAPSHOT_PKGDIR=packages +tags = + {{ meta.name }}:{{ info.build_number }}-py{{ meta.python_compact }} + {{ deploy.docker.registry }}/{{ meta.name }}:{{ info.build_number }}-py{{ meta.python_compact }} +test_script = + source /etc/profile + python -m pip freeze + mamba info diff --git a/tests/rt_generic_ng_based_on.sh b/tests/rt_generic_ng_based_on.sh new file mode 100644 index 0000000..de5af24 --- /dev/null +++ b/tests/rt_generic_ng_based_on.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash +here="$(dirname ${BASH_SOURCE[0]})" +source $here/setup.sh + +TEST_NAME=gbo_ng +PYTHON_VERSIONS=( + 3.11 +) +setup_workspace "$TEST_NAME" +run_command install_stasis + +ln -s "$TEST_DATA"/"$TEST_NAME".yml +for py_version in "${PYTHON_VERSIONS[@]}"; do + run_command run_stasis --python "$py_version" \ + --no-docker \ + --no-artifactory \ + "$TEST_DATA"/"$TEST_NAME".ini +done + +check_output_add "(null)" +run_command check_output_stasis_dir stasis/*/output +check_output_reset + +# NOTE: indexer default output directory is "output" +check_output_add "(null)" +run_command run_stasis_indexer stasis +run_command check_output_indexed_dir output +check_output_reset + +teardown_workspace "$TEST_NAME" |
