Skip to content

Commit

Permalink
enable devdeps testing (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Sep 12, 2023
1 parent 6d155a0 commit 9cf71e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand All @@ -84,3 +86,4 @@ jobs:
cache-key: crds-${{ needs.crds.outputs.context }}
envs: |
- linux: test-jwst-xdist-cov
- linux: test-jwst-xdist-devdeps
11 changes: 11 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 9cf71e5

Please sign in to comment.