chore - Update ubuntu version for python unit tests #2133
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updates ubuntu version to 22.04 LTS for the github actions unit tests runner image.
Motivation and Context
Python unit tests being run through GitHub Actions were getting stuck, likely due to GitHub Actions planning to deprecate Ubuntu 18.04 (https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/). This PR replaces 18.04 with 22.04 LTS in the affected workflows.
The diff changing single quotes to double quotes was due to an auto formatter running locally, it's consistent with code style elsewhere in these yaml files.
How Has This Been Tested?
I tested the ubuntu version upgrade by checking out an existing PR whose Python unit tests were stuck, making a new branch, updating the version there, pushing, and creating a PR to trigger the CI. The existing tests then passed.
Documentation
CheckList