Skip to content

fix: Anchored ubuntu version to support Python 2.7 in Github Actions#3086

Merged
UlisesGascon merged 1 commit into
nodejs:mainfrom
UlisesGascon:fix/python2.x-in-github-actions
Nov 22, 2022
Merged

fix: Anchored ubuntu version to support Python 2.7 in Github Actions#3086
UlisesGascon merged 1 commit into
nodejs:mainfrom
UlisesGascon:fix/python2.x-in-github-actions

Conversation

@UlisesGascon
Copy link
Copy Markdown
Member

Main changes

  • Update Github actions runner from ubuntu-latest to ubuntu-20.04

Context

@targos
Copy link
Copy Markdown
Member

targos commented Nov 22, 2022

Can we try first with setup-python@v4?

@UlisesGascon
Copy link
Copy Markdown
Member Author

@targos I created an alternative version at #3090 by upgrading the actions, but seems like is using the newer ubuntu version under the hood

@targos
Copy link
Copy Markdown
Member

targos commented Nov 22, 2022

Ok, thanks for trying.

@richardlau
Copy link
Copy Markdown
Member

@targos I created an alternative version at #3090 by upgrading the actions, but seems like is using the newer ubuntu version under the hood

Yes, GH is in the middle of migrating ubuntu-latest to 22.04: actions/runner-images#6399.

We should probably be updating to setup-python@v4 regardless (maybe a separate PR?).

Copy link
Copy Markdown
Member

@richardlau richardlau left a comment

Choose a reason for hiding this comment

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

Let's merge this and fix the workflows.

We might subsequently consider dropping Python 2.7 from the workflow matrix. I think #2659 effectively means you need to be running Python 3 to run our playbooks anyway.

@UlisesGascon
Copy link
Copy Markdown
Member Author

I will do the merge and then two separate PRs for:

  • Upgrade to setup-python@v4
  • Remove support for Python2

@UlisesGascon UlisesGascon merged commit afeb408 into nodejs:main Nov 22, 2022
richardlau added a commit to richardlau/build that referenced this pull request Apr 8, 2025
We previously pinned this workflow to `ubuntu-20.04` to preserve Python 2.7 compatibility, but have since dropped Python 2.7 so can now unpin.

Refs: nodejs#3086
Refs: nodejs#3093
Refs: actions/runner-images#11101
richardlau added a commit that referenced this pull request Apr 8, 2025
We previously pinned this workflow to `ubuntu-20.04` to preserve Python 2.7 compatibility, but have since dropped Python 2.7 so can now unpin.

Refs: #3086
Refs: #3093
Refs: actions/runner-images#11101
richardlau added a commit that referenced this pull request Apr 9, 2025
We previously pinned this workflow to `ubuntu-20.04` to preserve Python 2.7 compatibility, but have since dropped Python 2.7 so can now unpin.

Refs: #3086
Refs: #3093
Refs: actions/runner-images#11101
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