Skip to content

Commit

Permalink
fix downstream ci (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Oct 14, 2024
2 parents ecd5d16 + 3a03c8c commit 0c3d37e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ jobs:
CRDS_CLIENT_RETRY_COUNT: 3
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20
envs: |
- linux: py311-jwst-xdist
- linux: py311-romancal-xdist
- linux: py311-jwst-cov-xdist
- linux: py311-romancal-cov-xdist
coverage: codecov
29 changes: 20 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ description =
warnings: treating warnings as errors
cov: with coverage
xdist: using parallel processing
change_dir =
jwst,romancal: {env_tmp_dir}
allowlist_externals =
git
jwst,romancal: bash
extras =
test
deps =
xdist: pytest-xdist
cov: pytest-cov
jwst: jwst[test] @ git+https://github.com/spacetelescope/jwst.git
romancal: romancal[test] @ git+https://github.com/spacetelescope/romancal.git
oldestdeps: minimum_dependencies
devdeps: astropy>=0.0.dev0
downstreamdeps: jwst
Expand All @@ -56,31 +59,39 @@ deps =
pass_env =
CRDS_*
CI
romancal: WEBBPSF_PATH
set_env =
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
jwst: CRDS_SERVER_URL=https://jwst-crds.stsci.edu
downstreamdeps: CRDS_SERVER_URL=https://jwst-crds.stsci.edu
jwst,downstreamdeps: CRDS_SERVER_URL=https://jwst-crds.stsci.edu
jwst: CRDS_SERVER_URL = https://jwst-crds.stsci.edu
jwst,romancal: CRDS_PATH = {package_root}/crds_cache
jwst,romancal: CRDS_CLIENT_RETRY_COUNT = 3
jwst,romancal: CRDS_CLIENT_RETRY_DELAY_SECONDS = 20
romancal: CRDS_SERVER_URL=https://roman-crds.stsci.edu
package =
!cov: wheel
cov: editable
allowlist_externals =
echo
commands_pre =
oldestdeps: minimum_dependencies stpipe --filename requirements-min.txt
# this package doesn't depend on numpy directly but the old versions of dependencies
# will allow numpy 2.0 to be installed (and won't work with numpy 2.0). So we pin it.
oldestdeps: pip install numpy<2.0
oldestdeps: pip install -r requirements-min.txt
jwst,romancal: bash -c "pip freeze -q | grep 'stpipe @' > {env_tmp_dir}/requirements.txt"
jwst: git clone https://github.com/spacetelescope/jwst.git
romancal: git clone https://github.com/spacetelescope/romancal.git
jwst: pip install -e jwst[test]
romancal: pip install -e romancal[test]
jwst,romancal: pip install -r {env_tmp_dir}/requirements.txt
pip freeze
commands =
pytest \
warnings: -W error \
nolegacypath: -p no:legacypath \
xdist: -n auto \
jwst: --pyargs jwst --ignore-glob=timeconversion --ignore-glob=associations --ignore-glob=*/scripts/* \
romancal: --pyargs romancal \
cov: --cov=src/stpipe --cov-config=pyproject.toml --cov-report=term-missing --cov-report=xml \
jwst: jwst \
romancal: romancal \
cov: --cov={package_root} --cov-config={package_root}/pyproject.toml --cov-report=term-missing --cov-report=xml \
{posargs}

[testenv:build-docs]
Expand Down

0 comments on commit 0c3d37e

Please sign in to comment.