Added 'allow_failure' option for StaticTypeCheck job.

This commit is contained in:
Patrick Lehmann
2021-12-11 16:59:02 +01:00
parent f736ec2e07
commit 6d94f6f471
2 changed files with 8 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ on:
default: '3.6 3.7 3.8 3.9 3.10'
type: string
name:
description: 'Name of the tool.'
description: 'Name of the tool/package.'
required: true
type: string
outputs:

View File

@@ -44,6 +44,11 @@ on:
description: 'Commands to run the static type checks.'
required: true
type: string
allow_failure:
description: 'Allow a type checking to be failing without failing the overall workflow.'
required: false
default: false
type: boolean
artifact:
description: 'Name of the typing artifact.'
required: true
@@ -70,12 +75,12 @@ jobs:
python -m pip install ${{ inputs.requirements }}
- name: Check Static Typing
continue-on-error: true
continue-on-error: ${{ inputs.allow_failure }}
run: ${{ inputs.commands }}
- name: 📤 Upload 'Static Typing Report' artifact
if: ${{ inputs.artifact != '' }}
continue-on-error: true
continue-on-error: ${{ inputs.allow_failure }}
uses: actions/upload-artifact@v2
with:
name: ${{ inputs.artifact }}