Skip to content

Add macos workflow compatibility#82

Open
Ian0sborne wants to merge 9 commits into
nu-ZOO:mainfrom
Ian0sborne:add-macos-workflow-compatibility
Open

Add macos workflow compatibility#82
Ian0sborne wants to merge 9 commits into
nu-ZOO:mainfrom
Ian0sborne:add-macos-workflow-compatibility

Conversation

@Ian0sborne
Copy link
Copy Markdown
Contributor

This PR builds on #56 and implements the final changes needed to ensure that GitHub workflow test suites are able to catch non-functionality with MacOS systems before PRs are merged.

@Ian0sborne Ian0sborne requested a review from a team April 29, 2026 10:02
@Ian0sborne Ian0sborne force-pushed the add-macos-workflow-compatibility branch from f891bf0 to c7d4e99 Compare April 29, 2026 10:16
@Ian0sborne
Copy link
Copy Markdown
Contributor Author

Apparently conda env create does not accept a python= argument (this only works on conda env). The -f fetches the Python version inside the YAML file, which already declares python = 3.12 under dependencies. Therefore the version is already handled correctly without the extra argument.

@Ian0sborne Ian0sborne force-pushed the add-macos-workflow-compatibility branch from e85a791 to 2784ab1 Compare April 30, 2026 11:01
@Ian0sborne Ian0sborne requested review from MattZur and jwaiton April 30, 2026 11:07
Copy link
Copy Markdown
Member

@jwaiton jwaiton left a comment

Choose a reason for hiding this comment

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

Looks good! Just some small tweaks.


PYTEST_ADDOPTS=--color=yes HYPOTHESIS_PROFILE=travis-ci python -m pytest -v
PYTEST_ADDOPTS=--color=yes HYPOTHESIS_PROFILE=travis-ci \
conda run -n MULE-3.12-10-24 python -m pytest -v
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hardcoding the conda environment here scares me, although Im unsure of a better alternative at the moment.

Comment thread setup.sh
Comment on lines 78 to 84
else
echo "No Conda installation detected, installing conda."
echo 'Download conda? Select [1/2]:'
select yn in Yes No; do
case $yn in
Yes ) install_conda; break;;
No ) echo "MULE activation aborted"; return;;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

An inherent problem here is that you want the user to have choice in the installation of conda, but lines 20-46 install and initialise conda anyway. I'd remove the check to see if the user has conda and wants it installed, but warn the user with an echo that conda is being installed perhaps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looking at the code it seems to me that lines 20-46 define the conda installation function but don't actually call it. Hence the user prompt of yes/no actually does do something. If you want this do be removed and conda to be installed regardless I can do that of course!

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