CI: improve workflow debug 9
Some checks failed
/ build (push) Failing after 21s

This commit is contained in:
phil 2024-10-28 11:51:20 +01:00
parent 6051a52dba
commit 9fdaa03f7b

View file

@ -3,14 +3,15 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
logLevel: logLevel:
description: "Log level" description: "Verbose"
required: true required: false
default: "warning" default: false
type: choice type: boolean
options: build:
- info description: "Build container"
- warning required: false
- debug default: false
type: boolean
jobs: jobs:
build: build:
@ -35,7 +36,7 @@ jobs:
run: uv pip install httpx run: uv pip install httpx
- name: Echo env - name: Echo env
if: ${{ inputs.logLevel }} == 'debug' if: ${{ inputs.verbose }}
run: | run: |
echo '${{ toJSON(env) }}' echo '${{ toJSON(env) }}'
@ -43,6 +44,7 @@ jobs:
run: pytest -s tests/basic.py run: pytest -s tests/basic.py
- name: Build container - name: Build container
if: ${{ inputs.build }}
uses: actions/buildah-build@v1 uses: actions/buildah-build@v1
with: with:
image: treetrail-backend image: treetrail-backend