From bf0dbc47670c09937e483b86a232c276695b80e8 Mon Sep 17 00:00:00 2001 From: James Davies Date: Tue, 23 Jan 2024 12:17:19 +0100 Subject: [PATCH] Add downstreamdeps to tox and CI --- .github/workflows/ci.yml | 2 ++ tests/test_crds_client.py | 2 +- tox.ini | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a71e5f91..fe5b7da3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: - macos: py311-xdist - linux: py311-cov-xdist coverage: 'codecov' + - linux: py311-downstreamdeps-cov-xdist + coverage: 'codecov' - linux: py312-xdist test_downstream: uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 diff --git a/tests/test_crds_client.py b/tests/test_crds_client.py index 3dbeddef..24d8aeba 100644 --- a/tests/test_crds_client.py +++ b/tests/test_crds_client.py @@ -1,5 +1,5 @@ -from crds.core.exceptions import CrdsLookupError import pytest +from crds.core.exceptions import CrdsLookupError from stpipe import crds_client diff --git a/tox.ini b/tox.ini index a15bb1bd..0d828bda 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = check-{style,security,build} - test{,-warnings,-cov,-xdist,-oldestdeps,-devdeps} + test{,-warnings,-cov,-xdist,-oldestdeps,-devdeps,-downstreamdeps} test-{jwst,romancal}-xdist build-{docs,dist} @@ -37,6 +37,7 @@ description = jwst: of JWST pipeline romancal: of Romancal pipeline oldestdeps: with the oldest supported version of key dependencies + downstreamdeps: with the downstream packages that depend on stpipe warnings: treating warnings as errors cov: with coverage xdist: using parallel processing @@ -49,6 +50,7 @@ deps = romancal: romancal[test] @ git+https://github.com/spacetelescope/romancal.git oldestdeps: minimum_dependencies devdeps: astropy>=0.0.dev0 + downstreamdeps: stdatamodels pass_env = CRDS_* CI