mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
754bfb181c
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
37 lines
966 B
YAML
37 lines
966 B
YAML
name: Setup Poetry and Python
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python version to use and the Poetry installed with
|
|
required: true
|
|
default: '3.10'
|
|
poetry-version:
|
|
description: Poetry version to set up
|
|
required: true
|
|
default: '1.8.4'
|
|
poetry-lockfile:
|
|
description: Path to the Poetry lockfile to restore cache from
|
|
required: true
|
|
default: ''
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Set up Python ${{ inputs.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
cache: pip
|
|
|
|
- name: Install Poetry
|
|
shell: bash
|
|
run: pip install poetry==${{ inputs.poetry-version }}
|
|
|
|
- name: Restore Poetry cache
|
|
if: ${{ inputs.poetry-lockfile != '' }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
cache: poetry
|
|
cache-dependency-path: ${{ inputs.poetry-lockfile }}
|