+36
@@ -0,0 +1,36 @@
|
||||
name: "Project Manager"
|
||||
inputs:
|
||||
python-version:
|
||||
default: "3.14"
|
||||
setup-python:
|
||||
default: false
|
||||
venv-version:
|
||||
default: "1"
|
||||
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
|
||||
|
||||
- if: inputs.setup-python
|
||||
run: pip install poetry
|
||||
|
||||
- id: cache-venv
|
||||
if: inputs.setup-python
|
||||
uses: actions/cache@v6
|
||||
with:
|
||||
path: .venv
|
||||
key: venv-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-v${{ inputs.venv-version }}
|
||||
|
||||
- if: ${{ inputs.setup-python && steps.cache-venv.outputs.cache-hit != 'true' }}
|
||||
run: pm setup:python -vv
|
||||
Reference in New Issue
Block a user