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

TST: Fix devdeps and clean up matrix #1111

Merged
merged 7 commits into from
Nov 22, 2023
Merged

Conversation

pllim
Copy link
Member

@pllim pllim commented Nov 22, 2023

Fix devdeps job and clean up the testing infrastructure in general (some outdated stuff and unnecessary stuff from copy-paste).

xref astropy/astropy#15638

Close #1089

Fix #1036

pllim and others added 3 commits November 20, 2023 17:27
job because it is upgrading numpy but we do not want that to happen.
* Replace tmpdir with tmp_path

* Fix path construction

* Removed unused tmp_path

Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>

---------

Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
@pllim pllim added the testing label Nov 22, 2023
@pllim pllim added this to the v1.x milestone Nov 22, 2023
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (029ddfd) 70.74% compared to head (b353f77) 70.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1111      +/-   ##
==========================================
+ Coverage   70.74%   70.80%   +0.06%     
==========================================
  Files          64       64              
  Lines        4484     4484              
==========================================
+ Hits         3172     3175       +3     
+ Misses       1312     1309       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pllim
Copy link
Member Author

pllim commented Nov 22, 2023

I see numpy 1.x vs 2.x ABI warning and dateutil deprecation warning in the devdeps log here but somehow it did not fail pytest even though we are turning warnings into exceptions. I think maybe it is because in devdeps, we install quite a few things from source and some of those might be emitting these warnings, not us, so maybe it is okay to ignore as long as CI is green here.

@pllim pllim marked this pull request as ready for review November 22, 2023 02:00
@@ -28,11 +27,7 @@ install_requires =
[options.extras_require]
test =
pytest-astropy
pytest-cov
tox
Copy link
Contributor

Choose a reason for hiding this comment

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

I just added tox here so that people can run pip install -e .[test] locally and get everything they need to check their code locally before opening a PR, e.g. running tox -e codestyle (or any of the other tests via tox). I would prefer to keep this in.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay but you don't really need tox to do that. You can run flake8 specutils locally and it is the same check.

@rosteen
Copy link
Contributor

rosteen commented Nov 22, 2023

Thanks!

@rosteen rosteen merged commit 53af673 into astropy:main Nov 22, 2023
12 checks passed
@pllim pllim deleted the fix-devdeps branch November 22, 2023 22:12
rosteen added a commit to rosteen/specutils that referenced this pull request Nov 29, 2023
* TST: Pin casa-formats-io in oldest-deps
job because it is upgrading numpy but we do not want that to happen.

* Replace tmpdir with tmp_path (astropy#1095)

* Replace tmpdir with tmp_path

* Fix path construction

* Removed unused tmp_path

Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>

---------

Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>

* Fix devdeps and clean up matrix
and stuff

* Use astropy>=5.3 for doctest

* Add tox back in

---------

Co-authored-by: Ricky O'Steen <39831871+rosteen@users.noreply.github.com>
Co-authored-by: Ricky O'Steen <rosteen@stsci.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update docs/doctests for astropy 5.3 compatibility.
2 participants