Skip to content

Commit 0d6b67b

Browse files
[SCSB-233] add downstream romancal testing
1 parent f36ac73 commit 0d6b67b

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,17 @@ jobs:
8787
- linux: py313-cov
8888
coverage: codecov
8989
- macos: py313
90+
test_downstream:
91+
needs: [crds_context, latest_data_cache]
92+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@9f1fedda61294df4c004c05519a3fbf3b8e1f32f # v2.3.1
93+
with:
94+
setenv: |
95+
CRDS_PATH: ${{ needs.environment.outputs.data_path }}/crds
96+
CRDS_SERVER_URL: https://roman-crds.stsci.edu
97+
CRDS_CLIENT_RETRY_COUNT: 3
98+
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20
99+
cache-path: ${{ needs.environment.outputs.data_path }}/crds
100+
cache-key: crds-${{ needs.crds_contexts.outputs.roman }}
101+
envs: |
102+
- linux: py313-romancal
103+

tox.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
env_list =
33
py3{11,12,13}{,-pyargs,-regtests,-devdeps,-oldestdeps}{,-cov}{,-xdist}
44

5+
[main]
6+
romancal_repo = https://github.com/spacetelescope/romancal.git
7+
58
[testenv:check-style]
69
description = check code style, e.g. with flake8
710
skip_install = true
@@ -21,6 +24,8 @@ description =
2124
cov: with coverage
2225
xdist: using parallel processing
2326
use_develop = true
27+
allowlist_externals =
28+
git
2429
pass_env =
2530
HOME
2631
CI
@@ -37,14 +42,17 @@ extras =
3742
deps =
3843
xdist: pytest-xdist
3944
oldestdeps: minimum_dependencies
45+
romancal: romancal[test] @ git+{[main]romancal_repo}
4046
commands_pre =
4147
oldestdeps: minimum_dependencies romanisim --filename requirements-min.txt
4248
oldestdeps: pip install -r requirements-min.txt
4349
devdeps: pip install -r requirements-dev.txt -U --upgrade-strategy eager
44-
pip freeze
50+
{list_dependencies_command}
51+
romancal: git clone -n --depth=1 --filter=blob:none {[main]romancal_repo}
52+
romancal: git --git-dir={envtmpdir}/romancal/.git checkout HEAD pyproject.toml
4553
commands =
46-
pip freeze
4754
pytest \
55+
romancal: --config-file={env_tmp_dir}/pyproject.toml --pyargs romancal \
4856
cov: --cov=romanisim --cov-config=pyproject.toml --cov-report=term-missing --cov-report=xml \
4957
warnings: -W error \
5058
regtests: --bigdata --slow --basetemp={homedir}/test_outputs \

0 commit comments

Comments
 (0)