Ryujinx-Mako/.github/actions/setup-mako/action.yml
TSRBerry 7a1b6fb5f9
Configure python-version and update dependencies (#4)
* Update setup-python and add python-version range

* Update python dependencies

* Update dependabot.yml to include python and all actions

* Fix missing poetry binary
2024-01-29 22:38:27 +01:00

38 lines
893 B
YAML

name: 'Setup Mako'
description: 'Setup the environment for Mako'
runs:
using: 'composite'
steps:
- name: Get Mako path
id: path
run: |
echo "mako=$(realpath '${{ github.action_path }}/../../../')" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/setup-python@v5
with:
python-version: '>=3.8'
- name: Ensure pipx is available
run: |
if ! command -v pipx > /dev/null 2>&1; then
echo "$HOME/.local/bin" >> $GITHUB_PATH
python3 -m pip install --user pipx
python3 -m pipx ensurepath
fi
shell: bash
- name: Install poetry
run: pipx install poetry
shell: bash
- uses: actions/setup-python@v5
with:
python-version: '>=3.8'
cache: 'poetry'
- run: |
cd "${{ steps.path.outputs.mako }}"
poetry install --only main
shell: bash