diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8312dfc..07fb3701 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,8 @@ jobs: python-version: 3.11 - linux: test-xdist-cov coverage: codecov + - linux: test-xdist-devdeps + python-version: 3.11 test_downstream: uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main needs: [ crds ] @@ -84,3 +86,4 @@ jobs: cache-key: crds-${{ needs.crds.outputs.context }} envs: | - linux: test-jwst-xdist-cov + - linux: test-jwst-xdist-devdeps diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..21c175dd --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,11 @@ +git+https://github.com/astropy/asdf-astropy +git+https://github.com/asdf-format/asdf + +# Use weekly astropy dev build +--extra-index-url https://pypi.anaconda.org/astropy/simple astropy --pre + +# Use Bi-weekly numpy/scipy dev builds +--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple +numpy>=0.0.dev0 +# even though we don't need scipy some deps might and it's version is tightly linked to numpy +scipy>=0.0.dev0 diff --git a/tox.ini b/tox.ini index 1ee2a2a3..3129280e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = check-{style,security,build} - test{,-jwst,-devdeps}-xdist{,-cov} + test{,-jwst}{,-devdeps}-xdist{,-cov} build-{docs,dist} # tox environments are constructed with so-called 'factors' (or terms) @@ -37,7 +37,6 @@ description = pass_env = CRDS_* set_env = - devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cov: COVERAGE_RC_FILE=pyproject.toml extras = test @@ -50,7 +49,7 @@ package= cov: editable !cov: wheel commands_pre = - devdeps: pip install numpy>=0.0.dev0 git+https://github.com/astropy/astropy -U --upgrade-strategy eager + devdeps: pip install -r requirements-dev.txt -U --upgrade-strategy eager pip freeze commands = pytest \