Some checks failed
Python Linters / pylint (pull_request) Failing after 55s
Python Linters / formatting (pull_request) Failing after 54s
Python Linters / mypy (pull_request) Failing after 9s
REUSE Compliance / reuse (pull_request) Successful in 12s
Selftests / test-build-install (pull_request) Failing after 11s
Selftests / test-sync (pull_request) Failing after 9s
29 lines
778 B
YAML
29 lines
778 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:
|
|
# - run: printenv
|
|
# - run: echo /root/.local/bin >> $GITHUB_PATH
|
|
- run: echo "/root/.local/bin" >> $PATH
|
|
- name: Test
|
|
- name: Add pipx to PATH
|
|
if: github.actor == 'nektos/act'
|
|
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
|
|
- run: echo $PATH
|
|
- run: exit 1
|
|
- name: Install poetry
|
|
run: pipx install poetry
|
|
- name: Install poetry package
|
|
run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
|
|
shell: bash
|