-
Notifications
You must be signed in to change notification settings - Fork 94
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
actions: provision python from conda-forge #6655
Conversation
a717fa0
to
c3e23d2
Compare
- name: 'macos 1/5' | ||
os: 'macos-latest' | ||
python-version: '3.9' | ||
python-version: '3.8' # oldest available | ||
test-base: 'tests/f' | ||
chunk: '1/5' | ||
platform: '_local_background*' | ||
- name: 'macos 2/5' | ||
os: 'macos-latest' | ||
python-version: '3.9' | ||
python-version: '3' # newest available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original intention was to run the 1/4
chunk in MacOS on the oldest Python version. (However at some point this was split into 1/5
and 2/5
for faster completion.)
What is the intention behind running different chunks in different Python versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we should probably have a test for latest Python on Mac OS as a canary. Happy to revert (unrelated really).
c3e23d2
to
f1dee5a
Compare
sudo apt-get update | ||
sudo apt-get install -y at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at
is the one thing we need to get from the OS package manager.
@@ -12,6 +12,10 @@ concurrency: | |||
group: ${{ github.workflow }}-${{ github.ref }} | |||
cancel-in-progress: true | |||
|
|||
defaults: | |||
run: | |||
shell: bash -c "exec $CONDA_PREFIX/bin/bash -elo pipefail {0}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting -eo pipefail
for error checking.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
* Install system dependencies from conda-forge rather than relying on the OS package manager. * This divorces us from the system environment / underlying OS image, isolating us from changes to it. * This gives us more flexibility in the versions of the systems we install (e.g. no need to change OS image to install an older/newer version of Python).
* Closes cylc#6630 * Fixes SQL statements in functional tests to recent changes in sqlite3.
* Remove trailing newline character from SCP command.
f1dee5a
to
f467a07
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
* We were adding the `mail` command to `$PATH` in the `~/.bashrc` file, however, this file returns early when not run in interactive mode (which is always in a CI environment). * Moved this into the `~/.bash_profile` file.
Ok, comments addressed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Got one comment suggestion that I would rather have merged but not a blocker
Co-authored-by: Ronnie Dutta <[email protected]>
Done. |
apt get
(toat
) and remove usagebrew install
completely.svn
tests aren't skipped.mail
command to ensure mail tests aren't skipped.Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.