This action installs Python, upgrades pip and optionally installs some extra
dependencies.
Here is an example demonstrating how to use it in a workflow:
jobs:
test:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: frequenz-floss/gh-action-setup-python-with-deps@v1.0.0
with:
python-version: "3.11"
dependencies: "mkdocs"
- name: Run mkdocs
run: mkdocs --help-
python-version: The Python version to use. Required.This is passed to the
actions/setup-pythonaction. -
dependencies: The dependencies to install. Default: "".This is passed to the
pip installcommand as is, without any shell escaping. If empty, no dependencies are installed.