An open API service indexing awesome lists of open source software.

https://github.com/frequenz-floss/gh-action-setup-python-with-deps

Installs Python and some extra dependencies
https://github.com/frequenz-floss/gh-action-setup-python-with-deps

Last synced: 3 months ago
JSON representation

Installs Python and some extra dependencies

Awesome Lists containing this project

README

          

# Setup Python with dependencies Action

This action installs Python, upgrades `pip` and optionally installs some extra
dependencies.

Here is an example demonstrating how to use it in a workflow:

```yaml
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
```

## Inputs

* `python-version`: The Python version to use. Required.

This is passed to the
[`actions/setup-python`](https://github.com/actions/setup-python) action.

* `dependencies`: The dependencies to install. Default: "".

This is passed to the `pip install` command as is, without any shell
escaping. If empty, no dependencies are installed.