Skip to content

Commit

Permalink
Merge pull request #1845 from braingram/abacusutils_downstream
Browse files Browse the repository at this point in the history
add abacusutils to downstream
  • Loading branch information
braingram authored Oct 11, 2024
2 parents d8f3dcb + 7db6470 commit a4e7961
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ jobs:
- linux: weldx
- linux: sunpy
- linux: dkist
- linux: abacusutils
23 changes: 23 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,26 @@ commands =
# https://github.com/sunpy/sunpy/pull/7432
pytest dkist --benchmark-skip \
-W "ignore::asdf.exceptions.AsdfManifestURIMismatchWarning"

[testenv:abacusutils]
change_dir = {env_tmp_dir}
allowlist_externals =
git
bash
extras =
commands_pre =
bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt"
git clone https://github.com/abacusorg/abacusutils.git
pip install -vU setuptools wheel scipy Cython 'numpy<2' # for classy and corrfunc
pip install --no-build-isolation classy corrfunc
pip install -e abacusutils[test]
pip install -r {env_tmp_dir}/requirements.txt
# make an empty pytest.ini to prevent pytest from crawling up
# one directory and finding the pytest configuration for the asdf
# repo clone
bash -c "echo '' > pytest.ini"
pip freeze
commands =
# only running a subset of tests since only a portion of abacusutils
# relies on asdf
pytest abacusutils/tests/test_data.py

0 comments on commit a4e7961

Please sign in to comment.