Some checks failed
Python Linters / formatting (pull_request) Has been cancelled
Python Linters / mypy (pull_request) Has been cancelled
Python Linters / pylint (pull_request) Has been cancelled
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Failing after 8s
Selftests / test-sync (pull_request) Has been cancelled
26 lines
698 B
YAML
26 lines
698 B
YAML
# SPDX-FileCopyrightText: 2023 DB Systel GmbH
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: "Reusable Poetry build workflow"
|
|
inputs:
|
|
poetry_install_args:
|
|
default: ""
|
|
description: "Value for additional poetry install arguments"
|
|
required: false
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Add pipx to PATH
|
|
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
|
|
- name: Install poetry
|
|
run: pipx install poetry
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
cache: "poetry" # caching poetry dependencies
|
|
- name: Install poetry package
|
|
run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
|
|
shell: bash
|