GitHub Actions - Install Python in a runner VM

by
Jeremy Canfield |
Updated: December 20 2024
| GitHub Actions articles
GitHub Actions can be used to do something whenever something happens in one of your GitHub repositories. If you are not familiar with GitHub Actions, check out my article Getting Started with GitHub Actions.
actions/setup-python can be used to install Python in a runner VM.
name: GitHub Action
run-name: ${{ github.workflow }} run by ${{ github.actor }}
on:
push:
branches:
- main
jobs:
restart-docker-container:
runs-on: ubuntu-latest
steps:
- name: setup python in the runner VM
uses: actions/setup-python@v5
with:
python-version: '3.12'
Did you find this article helpful?
If so, consider buying me a coffee over at