Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add abacusutils to downstream #1845

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to make a blank "pytest.ini" here to prevent pytest from searching the parent directory and finding the asdf pytest configuration (in pyproject.toml in the asdf checkout). I think this should still work if abacusutils adds a pytest configuration (since that should be found before the blank pytest.ini created here).

pip freeze
commands =
# only running a subset of tests since only a portion of abacusutils
# relies on asdf
pytest abacusutils/tests/test_data.py
Loading