As opposed to ubuntu runners, where we select a specific python version, we use the default python version for macos runners because the setup-python action didn’t seem to work for us (although there were several similar issues reported by other users as well).
Now that we have a new method of locating Python (find_package (Python3 COMPONENTS Interpreter Development)a3836b3), we should give another try.
In the workflow files, change "python": "default" to one of the available Python versions for macos-11 and macos-12 (3.7-3.11)
Remove the if: runner.os == 'Linux' condition in the 'Set up Python (on Linux)' step in actions/setup/action.yml
As opposed to ubuntu runners, where we select a specific python version, we use the default python version for macos runners because the setup-python action didn’t seem to work for us (although there were several similar issues reported by other users as well). Now that we have a new method of locating Python (
find_package (Python3 COMPONENTS Interpreter Development)
a3836b3), we should give another try.if: runner.os == 'Linux'
condition in the 'Set up Python (on Linux)' step in actions/setup/action.yml