-
Notifications
You must be signed in to change notification settings - Fork 96
packaging: check pip/conda compatibility #7013
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
Changes from 2 commits
39239f6
1e112dc
c91c402
bfda2ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -5,6 +5,8 @@ on: | |||||||||
paths: | ||||||||||
- 'conda-environment.yml' | ||||||||||
- '.github/workflows/test_conda-build.yml' | ||||||||||
- 'pyproject.toml' | ||||||||||
- 'setup.cfg' | ||||||||||
schedule: | ||||||||||
- cron: '17 22 * * 6' # Every Saturday at 22:17 | ||||||||||
workflow_dispatch: | ||||||||||
|
@@ -31,6 +33,8 @@ jobs: | |||||||||
python-version: ['3.12', '3'] | ||||||||||
env: | ||||||||||
ENV_FILE: conda-environment.yml | ||||||||||
# prevent pip from meddling with the conda installed dependencies (during the conda build step) | ||||||||||
PIP_NO_DEPS: True | ||||||||||
steps: | ||||||||||
- name: checkout cylc-flow | ||||||||||
uses: actions/checkout@v5 | ||||||||||
|
@@ -52,8 +56,13 @@ jobs: | |||||||||
- name: check cylc installation | ||||||||||
shell: bash -el {0} | ||||||||||
run: | | ||||||||||
# make sure Cylc is functioning | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing I noticed when testing locally is that conda seems pretty keen on installing Python 3.12 even when the current is 3.14. Can we check that 3.14 is not being overridden?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would just be testing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm concerned the Possibly this issue: conda-incubator/setup-miniconda#114 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. We could hard pin the python version at the Conda level (i.e add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Implemented the above suggestion in c91c402 Unfold the last section in the "build Conda env" step to reveal the version installed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I we want to force our actions (including this one) to run with the latest Python, we'll have to explicitly state it. But that's a right maintenance pain as we'll have to keep updating it :(
Orthogonal to this new check either way, but probs something we should look into soon to help spot leading edge issues sooner as current tests ain't gonna do that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah right, I was thinking of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With setup-python, With Conda, Neither is perfect, but setup-python is more likely to give the preferred answer more of the time. Specifying There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohhh it was choosing 3.12 because of the old protobuf pin, got it. Still, it is useful to have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep. It isn't ideal that this can happen, am mulling possible workarounds for future... |
||||||||||
conda run -n test cylc version --long | ||||||||||
|
||||||||||
# make sure pip is happy with the packages installed | ||||||||||
# (checks pip deps are compatible with conda deps) | ||||||||||
conda run -n test pip check | ||||||||||
|
||||||||||
- name: check for activate scripts | ||||||||||
shell : bash -el {0} | ||||||||||
run: | | ||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.