Files
gallery/.gitea/actions/setup/action.yml
T
shmyga 1d1ba69cc8
release / release (push) Successful in 8m42s
test / test (push) Successful in 56s
ci(version): 0.10.4
2026-09-29 22:54:33 +03:00

33 lines
846 B
YAML

name: "Setup"
description: "Setup project"
inputs:
python-version:
default: "3.14"
runs:
using: "composite"
steps:
- id: setup-python
uses: actions/setup-python@v7
with:
python-version: ${{ inputs.python-version }}
cache: "pip"
- run: |
pip install project-manager \
--index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \
--extra-index-url https://pypi.org/simple
- run: pm setup:config -vv
# setup python venv
- run: pip install poetry
- id: cache-venv
uses: actions/cache@v6
with:
path: .venv
key: venv-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-v1
- if: steps.cache-venv.outputs.cache-hit != 'true'
run: pm setup:python -vv