diff --git a/.github/workflows/Parameters.yml b/.github/workflows/Parameters.yml index f7b217d..c8c755c 100644 --- a/.github/workflows/Parameters.yml +++ b/.github/workflows/Parameters.yml @@ -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: diff --git a/.github/workflows/StaticTypeCheck.yml b/.github/workflows/StaticTypeCheck.yml index 115cc53..4165994 100644 --- a/.github/workflows/StaticTypeCheck.yml +++ b/.github/workflows/StaticTypeCheck.yml @@ -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 }}