Some checks failed
Test suites / test-os-python-matrix (ubuntu-22.04, 3.10) (pull_request) Failing after 30s
Test suites / test-os-python-matrix (ubuntu-22.04, 3.12) (pull_request) Failing after 31s
Test suites / test-os-python-matrix (ubuntu-22.04, 3.11) (pull_request) Failing after 34s
Test suites / test-os-python-matrix (ubuntu-22.04, 3.13) (pull_request) Failing after 31s
Test suites / test-build-install (pull_request) Failing after 29s
Test suites / pylint (pull_request) Failing after 32s
Test suites / formatting (pull_request) Failing after 32s
Test suites / mypy (pull_request) Failing after 31s
Test suites / reuse (pull_request) Successful in 7s
34 lines
839 B
YAML
34 lines
839 B
YAML
# SPDX-FileCopyrightText: 2025 DB Systel GmbH
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: "Reusable Poetry build workflow"
|
|
inputs:
|
|
python:
|
|
default: "3.10"
|
|
description: "Value for 'python-version'"
|
|
required: false
|
|
type: string
|
|
poetry_args:
|
|
default: ""
|
|
description: "Additional arguments for the poetry install step'"
|
|
required: false
|
|
type: string
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install poetry
|
|
run: pipx install poetry
|
|
shell: bash
|
|
- name: Ensure pipx is in PATH
|
|
run: pipx ensurepath
|
|
shell: bash
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python }}
|
|
cache: "poetry"
|
|
- name: Install dependencies
|
|
run: poetry install --no-interaction ${{ inputs.poetry_args }}
|
|
shell: bash
|