Skip to content

[WORK-6109] Updated continue-on-error as an input #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions python-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
7 changes: 6 additions & 1 deletion python-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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