mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Revert "Added 'allow_failure' option for StaticTypeCheck job."
This reverts commit 6d94f6f471.
This commit is contained in:
2
.github/workflows/Parameters.yml
vendored
2
.github/workflows/Parameters.yml
vendored
@@ -36,7 +36,7 @@ on:
|
|||||||
default: '3.6 3.7 3.8 3.9 3.10'
|
default: '3.6 3.7 3.8 3.9 3.10'
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
description: 'Name of the tool/package.'
|
description: 'Name of the tool.'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
9
.github/workflows/StaticTypeCheck.yml
vendored
9
.github/workflows/StaticTypeCheck.yml
vendored
@@ -44,11 +44,6 @@ on:
|
|||||||
description: 'Commands to run the static type checks.'
|
description: 'Commands to run the static type checks.'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
allow_failure:
|
|
||||||
description: 'Allow a type checking to be failing without failing the overall workflow.'
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
artifact:
|
artifact:
|
||||||
description: 'Name of the typing artifact.'
|
description: 'Name of the typing artifact.'
|
||||||
required: true
|
required: true
|
||||||
@@ -75,12 +70,12 @@ jobs:
|
|||||||
python -m pip install ${{ inputs.requirements }}
|
python -m pip install ${{ inputs.requirements }}
|
||||||
|
|
||||||
- name: Check Static Typing
|
- name: Check Static Typing
|
||||||
continue-on-error: ${{ inputs.allow_failure }}
|
continue-on-error: true
|
||||||
run: ${{ inputs.commands }}
|
run: ${{ inputs.commands }}
|
||||||
|
|
||||||
- name: 📤 Upload 'Static Typing Report' artifact
|
- name: 📤 Upload 'Static Typing Report' artifact
|
||||||
if: ${{ inputs.artifact != '' }}
|
if: ${{ inputs.artifact != '' }}
|
||||||
continue-on-error: ${{ inputs.allow_failure }}
|
continue-on-error: true
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.artifact }}
|
name: ${{ inputs.artifact }}
|
||||||
|
|||||||
Reference in New Issue
Block a user