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
- Host: GitHub
- URL: https://github.com/frequenz-floss/gh-action-setup-python-with-deps
- Owner: frequenz-floss
- License: mit
- Created: 2024-02-23T12:54:57.000Z (over 2 years ago)
- Default Branch: v1.x.x
- Last Pushed: 2025-10-01T12:44:29.000Z (8 months ago)
- Last Synced: 2025-10-01T14:39:06.636Z (8 months ago)
- Size: 52.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
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.