Skip to content

Inconsistent Python version between steps with macos-latest #487

@jtpio

Description

@jtpio

Description:

A couple of days ago some CI checks that run on macos-latest with older versions of Python (3.7, 3.8, 3.9) started failing.

Action version:

actions/setup-python@v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

- name: Install Python
  uses: actions/setup-python@v4
  with:
    python-version: '3.7'
    architecture: 'x64'

Repro steps:

Here is a public example: https://github.com/jupyter/notebook/runs/7973591481

There is also this issue with screenshots comparing macos to linux: jupyterlab/jupyterlab#12991

Expected behavior:

pip should correspond to the Python setup with actions/setup-python (in the example above), when invoked with python -m pip or python3 -m pip.

Actual behavior:

In https://github.com/jupyter/notebook/runs/7973591481 we notice a Python version mismatch:

image


Thanks for your help!

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions