From cc169da20346d0dac7a997eec8b5178b4387991d Mon Sep 17 00:00:00 2001 From: Ashish Nayan Date: Tue, 27 Jun 2023 13:57:15 +0530 Subject: [PATCH 1/4] testing github action --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index c43ae29..c1d489c 100644 --- a/action.yml +++ b/action.yml @@ -127,7 +127,7 @@ runs: '${{ inputs.extra-isort-options }}' '${{ inputs.extra-vulture-options }}' '${{ inputs.extra-pydocstyle-options }}' - ${{ inputs.command }} + '${{ inputs.command }}' shell: pwsh - name: Lint on Linux @@ -151,5 +151,5 @@ runs: '${{ inputs.extra-isort-options }}' '${{ inputs.extra-vulture-options }}' '${{ inputs.extra-pydocstyle-options }}' - ${{ inputs.command }} + '${{ inputs.command }}' shell: bash From 473d3d6cf819c53a267d430c1058601e92db753c Mon Sep 17 00:00:00 2001 From: Ashish Nayan Date: Tue, 27 Jun 2023 14:06:57 +0530 Subject: [PATCH 2/4] testing github action --- entrypoint.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3ca71d9..b026e43 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -57,7 +57,7 @@ export TERM=xterm if [ "$2" = true ] ; then - echo Running: pylint ${10} $1 + echo Running: ${18} pylint ${10} $1 ${18} pylint --output-format="colorized" ${10} $1 exit_code=$? @@ -72,7 +72,7 @@ fi if [ "$3" = true ] ; then - echo Running: pycodestyle ${11} $1 + echo Running: ${18} pycodestyle ${11} $1 ${18} pycodestyle ${11} $1 exit_code=$? @@ -87,7 +87,7 @@ fi if [ "$4" = true ] ; then - echo Running: flake8 ${12} $1 + echo Running: ${18} flake8 ${12} $1 ${18} flake8 ${12} $1 exit_code=$? @@ -102,7 +102,7 @@ fi if [ "$5" = true ] ; then - echo Running: black --check ${13} $1 + echo Running: ${18} black --check ${13} $1 ${18} black --check ${13} $1 exit_code=$? @@ -117,7 +117,7 @@ fi if [ "$6" = true ] ; then - echo Running: mypy --install-types --non-interactive --ignore-missing-imports --follow-imports=silent --show-column-numbers ${14} $1 + echo Running: ${18} mypy --install-types --non-interactive --ignore-missing-imports --follow-imports=silent --show-column-numbers ${14} $1 ${18} mypy \ --install-types --non-interactive \ @@ -136,7 +136,7 @@ fi if [ "$7" = true ] ; then - echo Running: isort ${15} $1 -c --diff + echo Running: ${18} isort ${15} $1 -c --diff ${18} isort ${15} $1 -c --diff exit_code=$? @@ -151,7 +151,7 @@ fi if [ "$8" = true ] ; then - echo Running: vulture ${16} $1 + echo Running: ${18} vulture ${16} $1 ${18} vulture ${16} $1 exit_code=$? @@ -166,7 +166,7 @@ fi if [ "$9" = true ] ; then - echo Running: pydocstyle ${17} $1 + echo Running: ${18} pydocstyle ${17} $1 ${18} pydocstyle ${17} $1 exit_code=$? From 5c773caab781518e6938123c2b0abeac1be59194 Mon Sep 17 00:00:00 2001 From: Ashish Nayan Date: Tue, 27 Jun 2023 14:56:58 +0530 Subject: [PATCH 3/4] testing github action --- action.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/action.yml b/action.yml index c1d489c..821f8b0 100644 --- a/action.yml +++ b/action.yml @@ -84,15 +84,15 @@ inputs: runs: using: "composite" steps: - - name: Setup python - uses: actions/setup-python@v4 - with: - python-version: ${{ inputs.python-version }} - architecture: x64 - cache: ${{ inputs.cache-type }} - - - run: python --version - shell: bash + # - name: Setup python + # uses: actions/setup-python@v4 + # with: + # python-version: ${{ inputs.python-version }} + # architecture: x64 + # cache: ${{ inputs.cache-type }} + # + # - run: python --version + # shell: bash # - name: Windows install dependencies # if: ${{ runner.os == 'Windows' }} From 2adbf38a960b2d8ce185a7ddd1998f4804a95d64 Mon Sep 17 00:00:00 2001 From: Ashish Nayan Date: Tue, 27 Jun 2023 15:03:03 +0530 Subject: [PATCH 4/4] testing github action --- action.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/action.yml b/action.yml index 821f8b0..01485c9 100644 --- a/action.yml +++ b/action.yml @@ -80,19 +80,23 @@ inputs: description: "Set desired python version with this keyword" required: false default: "3.8" + cache-type: + description: "Set cache for setup python" + required: true + default: "poetry" runs: using: "composite" steps: - # - name: Setup python - # uses: actions/setup-python@v4 - # with: - # python-version: ${{ inputs.python-version }} - # architecture: x64 - # cache: ${{ inputs.cache-type }} - # - # - run: python --version - # shell: bash + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ inputs.python-version }} + architecture: x64 + cache: ${{ inputs.cache-type }} + + - run: python --version + shell: bash # - name: Windows install dependencies # if: ${{ runner.os == 'Windows' }}