From c08c75857f51db8f8f9f96f7993dfc2647ad0f4c Mon Sep 17 00:00:00 2001 From: "green." <41323182+greeeen-dev@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:56:56 +0100 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 94 +++++++++++++++++++++++++++++++++--- 1 file changed, 88 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index fcb9802..6b6d045 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12"] + python-version: ["3.12", "3.13"] steps: - name: Download Plugin uses: actions/checkout@v4 @@ -40,7 +40,48 @@ jobs: pip install -r requirements_unifier.txt pip install -r requirements.txt pip install pylint - - name: Analysing the code with pylint + - name: Pylint analysis + run: | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') + + build-linux-balanced: + name: "Linux (Balanced)" + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12", "3.13"] + steps: + - name: Download Plugin + uses: actions/checkout@v4 + - name: Download Unifier + uses: actions/checkout@v4 + with: + repository: UnifierHQ/unifier + path: unifier + - name: Download dependency reader + uses: actions/checkout@v4 + with: + repository: UnifierHQ/plugin-dependency-reader + path: reader + - name: Copy Unifier files + run: | + mkdir utils + cp -r unifier/utils/* utils + cp unifier/requirements_balanced.txt requirements_unifier.txt + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Read Plugin requirements + run: | + python reader/reader.py + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_unifier.txt + pip install -r requirements.txt + pip install pylint + - name: Pylint analysis run: | pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') @@ -49,7 +90,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.12", "3.13"] steps: - name: Download Plugin uses: actions/checkout@v4 @@ -81,7 +122,7 @@ jobs: pip install -r requirements_unifier.txt pip install -r requirements.txt pip install pylint - - name: Analysing the code with pylint + - name: Pylint analysis run: | pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') @@ -122,7 +163,48 @@ jobs: pip install -r requirements_unifier.txt pip install -r requirements.txt pip install pylint - - name: Analysing the code with pylint + - name: Pylint analysis + run: | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') + + build-windows-balanced: + name: "Windows (Balanced)" + runs-on: windows-latest + strategy: + matrix: + python-version: ["3.12"] + steps: + - name: Download Plugin + uses: actions/checkout@v4 + - name: Download Unifier + uses: actions/checkout@v4 + with: + repository: UnifierHQ/unifier + path: unifier + - name: Download dependency reader + uses: actions/checkout@v4 + with: + repository: UnifierHQ/plugin-dependency-reader + path: reader + - name: Copy Unifier files + run: | + New-Item -Path utils -ItemType Directory + Copy-item -Force -Recurse unifier/utils/* -Destination utils/ + Copy-item -Force unifier/requirements_balanced.txt -Destination requirements_unifier.txt + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Read Plugin requirements + run: | + python reader/reader.py + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_unifier.txt + pip install -r requirements.txt + pip install pylint + - name: Pylint analysis run: | pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') @@ -131,7 +213,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.12", "3.13"] steps: - name: Download Plugin uses: actions/checkout@v4