Skip to content

enable astropy7 tests on github#196

Merged
sbailey merged 2 commits intomainfrom
github_tests
Jan 5, 2026
Merged

enable astropy7 tests on github#196
sbailey merged 2 commits intomainfrom
github_tests

Conversation

@sbailey
Copy link
Copy Markdown
Contributor

@sbailey sbailey commented Jan 5, 2026

This PR updates the GitHub actions test matrix to include astropy/7.x . Tests pass with astropy 7.1.0 at NERSC so I'm optimistic that they will also pass on GitHub. It also replaces deprecated numpy.in1d with numpy.isin.

Copilot AI review requested due to automatic review settings January 5, 2026 23:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables testing with astropy 7.x on GitHub Actions and replaces the deprecated numpy.in1d function with numpy.isin to ensure compatibility with future numpy versions.

Key Changes:

  • Updated astropy version constraints from <7 to <8 for Python 3.13 and 3.12 test matrices
  • Replaced all occurrences of deprecated numpy.in1d with numpy.isin (2 instances)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/python-package.yml Updated astropy version constraint to <8 for Python 3.13 and 3.12 test configurations to enable astropy 7.x testing
py/desisurvey/plots.py Replaced deprecated np.in1d with np.isin for checking weather weights membership
py/desisurvey/old/progress.py Replaced deprecated np.in1d with np.isin for filtering passes in the completed method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 35.105%. remained the same
when pulling 44e575e on github_tests
into 61672fa on main.

@sbailey sbailey merged commit b07d392 into main Jan 5, 2026
22 checks passed
@sbailey sbailey deleted the github_tests branch January 5, 2026 23:57
sbailey added a commit that referenced this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants