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 CI run running on oldest supported versions of core dependencies #2619

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Sep 13, 2024

No description provided.

@maxnoe maxnoe force-pushed the oldest_deps branch 3 times, most recently from d497789 to 71a2b27 Compare September 13, 2024 10:08
@maxnoe maxnoe changed the title Add CI run running on oldest supported versions of core dependencie Add CI run running on oldest supported versions of core dependencies Sep 13, 2024
@maxnoe maxnoe marked this pull request as ready for review September 13, 2024 10:25
@maxnoe maxnoe requested review from Tobychev and kosack September 13, 2024 10:26

This comment has been minimized.

kosack
kosack previously approved these changes Sep 13, 2024
Tobychev
Tobychev previously approved these changes Sep 19, 2024
@maxnoe maxnoe dismissed stale reviews from Tobychev and kosack via 26668a0 January 23, 2025 17:26
- if: contains(matrix.extra-args, 'oldest-deps') && contains(github.event.pull_request.labels.*.name, 'documentation-only') == false
run: |
micromamba install -n cta-dev -y numpy=1.24 numba=0.57 scipy=1.10 astropy=5.3 matplotlib=3.6
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there really no other way than hardcoding the version numbers in the ci.yml config file? Seems easy to have it get out of synch, but may that doesn't lead to any hard to solve problems?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't find an elegant solution to this. astropy for example also hard-codes their oldest supported versions (in tox.ini in this case):
https://github.com/astropy/astropy/blob/fc2ef61cf6dbb3a06a5e9d11c19995960902e63b/tox.ini#L76-L90

Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (94.10% Estimated after merge)
  • Duplications No duplication information (0.70% Estimated after merge)

Project ID: cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs

View in SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CI job running tests on oldest supported versions of dependencies
3 participants