Update CI :
- Python version update to 3.10 - Add the Pylinter step with the main pull request - Py Linter, add the exit code saved
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Unit Test
|
name: Pylinter
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -16,13 +16,15 @@ jobs:
|
|||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.10
|
||||||
- name: Install the linter app
|
- name: Install the linter app and set package name
|
||||||
|
id: config
|
||||||
run: |
|
run: |
|
||||||
|
echo "::set-output name=folder::$(python '.github/package.py')"
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install -r linter/requirements_linter.txt
|
python -m pip install -r linter/requirements_linter.txt
|
||||||
|
|
||||||
- name: Execute the pylinter
|
- name: Execute the pylinter
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
pylint --rcfile=${{ github.workspace }}/linter/.pylintrc
|
pylint --rcfile=${{ github.workspace }}/linter/.pylintrc ${{ steps.config.outputs.folder }} -E
|
||||||
@@ -16,11 +16,15 @@ jobs:
|
|||||||
unit-test:
|
unit-test:
|
||||||
uses: Moderlab-Production/BlenderTemplate/.github/workflows/unit_test.yml@main
|
uses: Moderlab-Production/BlenderTemplate/.github/workflows/unit_test.yml@main
|
||||||
|
|
||||||
|
py-linter:
|
||||||
|
uses: Moderlab-Production/BlenderTemplate/.github/workflows/linter.yml@main
|
||||||
|
|
||||||
release-package-addon:
|
release-package-addon:
|
||||||
name: Generate archive package addon
|
name: Generate archive package addon
|
||||||
needs:
|
needs:
|
||||||
- init-release-data
|
- init-release-data
|
||||||
- unit-test
|
- unit-test
|
||||||
|
- py-linter
|
||||||
uses: Moderlab-Production/BlenderTemplate/.github/workflows/package_addon.yml@main
|
uses: Moderlab-Production/BlenderTemplate/.github/workflows/package_addon.yml@main
|
||||||
with:
|
with:
|
||||||
num_version: ${{ needs.init-release-data.outputs.version_number }}
|
num_version: ${{ needs.init-release-data.outputs.version_number }}
|
||||||
@@ -32,6 +36,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- init-release-data
|
- init-release-data
|
||||||
- unit-test
|
- unit-test
|
||||||
|
- py-linter
|
||||||
uses: Moderlab-Production/BlenderTemplate/.github/workflows/package_preset.yml@main
|
uses: Moderlab-Production/BlenderTemplate/.github/workflows/package_preset.yml@main
|
||||||
with:
|
with:
|
||||||
name_version: ${{ needs.init-release-data.outputs.version_name }}
|
name_version: ${{ needs.init-release-data.outputs.version_name }}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.10
|
||||||
- name: Setup python to execute all Unit Test
|
- name: Setup python to execute all Unit Test
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|||||||
Reference in New Issue
Block a user