diff --git a/python-lint/action.yml b/python-lint/action.yml index 2918e78..0a6e31c 100644 --- a/python-lint/action.yml +++ b/python-lint/action.yml @@ -10,6 +10,12 @@ inputs: description: "The version of Poetry to use" required: true + continue-on-error: + type: boolean + description: "Continue on error" + required: false + default: true + runs: using: "composite" @@ -43,20 +49,20 @@ runs: - name: Run Black run: poetry run black --check . - continue-on-error: true #Added so to provide lineance while lint + continue-on-error: ${{ inputs.continue-on-error }} #Added so to provide lineance while lint shell: bash - name: Run Flake8 run: poetry run flake8 . - continue-on-error: true #Added so to provide lineance while lint + continue-on-error: ${{ inputs.continue-on-error }} #Added so to provide lineance while lint shell: bash - name: Run isort run: poetry run isort --check . - continue-on-error: true #Added so to provide lineance while lint + continue-on-error: ${{ inputs.continue-on-error }} #Added so to provide lineance while lint shell: bash - name: Run mypy run: poetry run mypy . - continue-on-error: true #Added so to provide lineance while lint + continue-on-error: ${{ inputs.continue-on-error }} #Added so to provide lineance while lint shell: bash diff --git a/python-test/action.yml b/python-test/action.yml index 229e3d5..74c6c00 100644 --- a/python-test/action.yml +++ b/python-test/action.yml @@ -8,6 +8,11 @@ inputs: poetry-version: description: "The version of Poetry to install" required: true + continue-on-error: + type: boolean + description: "Continue on error" + required: false + default: true runs: using: "composite" @@ -46,5 +51,5 @@ runs: - name: Run Test run: poetry run pytest - continue-on-error: true + continue-on-error: ${{ inputs.continue-on-error }} shell: bash