diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 9d74c8d..6afa7c8 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,4 +1,4 @@ -name: Unit Test +name: Pylinter on: workflow_call: @@ -16,13 +16,15 @@ jobs: - uses: actions/checkout@main - uses: actions/setup-python@v2 with: - python-version: 3.9 - - name: Install the linter app + python-version: 3.10 + - name: Install the linter app and set package name + id: config run: | + echo "::set-output name=folder::$(python '.github/package.py')" python -m pip install --upgrade pip python -m pip install -r linter/requirements_linter.txt - name: Execute the pylinter run: | cd ${{ github.workspace }} - pylint --rcfile=${{ github.workspace }}/linter/.pylintrc \ No newline at end of file + pylint --rcfile=${{ github.workspace }}/linter/.pylintrc ${{ steps.config.outputs.folder }} -E \ No newline at end of file diff --git a/.github/workflows/pr_main.yml b/.github/workflows/pr_main.yml index c721d2d..0c7921c 100644 --- a/.github/workflows/pr_main.yml +++ b/.github/workflows/pr_main.yml @@ -16,11 +16,15 @@ jobs: unit-test: uses: Moderlab-Production/BlenderTemplate/.github/workflows/unit_test.yml@main + py-linter: + uses: Moderlab-Production/BlenderTemplate/.github/workflows/linter.yml@main + release-package-addon: name: Generate archive package addon needs: - init-release-data - unit-test + - py-linter uses: Moderlab-Production/BlenderTemplate/.github/workflows/package_addon.yml@main with: num_version: ${{ needs.init-release-data.outputs.version_number }} @@ -32,6 +36,7 @@ jobs: needs: - init-release-data - unit-test + - py-linter uses: Moderlab-Production/BlenderTemplate/.github/workflows/package_preset.yml@main with: name_version: ${{ needs.init-release-data.outputs.version_name }} diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index e45aa28..628776c 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@main - uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.10 - name: Setup python to execute all Unit Test run: | python -m pip install --upgrade pip