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.
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.
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.
at is the one thing we need to get from the OS package manager.
|
|
||
| defaults: | ||
| run: | ||
| shell: bash -c "exec $CONDA_PREFIX/bin/bash -elo pipefail {0}" |
There was a problem hiding this comment.
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:
|
MetRonnie
left a comment
There was a problem hiding this comment.
Nice. Got one comment suggestion that I would rather have merged but not a blocker
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
|
Done. |
apt get(toat) and remove usagebrew installcompletely.svntests aren't skipped.mailcommand to ensure mail tests aren't skipped.Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.