|
| 1 | +name: Pylint |
| 2 | + |
| 3 | +on: [push] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build-linux: |
| 7 | + name: "Linux (Optimized)" |
| 8 | + runs-on: ubuntu-latest |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + python-version: ["3.12", "3.13"] |
| 12 | + steps: |
| 13 | + - name: Download Plugin |
| 14 | + uses: actions/checkout@v4 |
| 15 | + - name: Download Unifier |
| 16 | + uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + repository: UnifierHQ/unifier |
| 19 | + path: unifier |
| 20 | + - name: Download dependency reader |
| 21 | + uses: actions/checkout@v4 |
| 22 | + with: |
| 23 | + repository: UnifierHQ/plugin-dependency-reader |
| 24 | + path: reader |
| 25 | + - name: Copy Unifier files |
| 26 | + run: | |
| 27 | + mkdir utils |
| 28 | + cp -r unifier/utils/* utils |
| 29 | + cp unifier/requirements.txt requirements_unifier.txt |
| 30 | + - name: Set up Python ${{ matrix.python-version }} |
| 31 | + uses: actions/setup-python@v5 |
| 32 | + with: |
| 33 | + python-version: ${{ matrix.python-version }} |
| 34 | + - name: Read Plugin requirements |
| 35 | + run: | |
| 36 | + python reader/reader.py |
| 37 | + - name: Install dependencies |
| 38 | + run: | |
| 39 | + python -m pip install --upgrade pip |
| 40 | + pip install -r requirements_unifier.txt |
| 41 | + pip install -r requirements.txt |
| 42 | + pip install pylint |
| 43 | + - name: Pylint analysis |
| 44 | + run: | |
| 45 | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') |
| 46 | +
|
| 47 | + build-linux-balanced: |
| 48 | + name: "Linux (Balanced)" |
| 49 | + runs-on: ubuntu-latest |
| 50 | + strategy: |
| 51 | + matrix: |
| 52 | + python-version: ["3.12", "3.13"] |
| 53 | + steps: |
| 54 | + - name: Download Plugin |
| 55 | + uses: actions/checkout@v4 |
| 56 | + - name: Download Unifier |
| 57 | + uses: actions/checkout@v4 |
| 58 | + with: |
| 59 | + repository: UnifierHQ/unifier |
| 60 | + path: unifier |
| 61 | + - name: Download dependency reader |
| 62 | + uses: actions/checkout@v4 |
| 63 | + with: |
| 64 | + repository: UnifierHQ/plugin-dependency-reader |
| 65 | + path: reader |
| 66 | + - name: Copy Unifier files |
| 67 | + run: | |
| 68 | + mkdir utils |
| 69 | + cp -r unifier/utils/* utils |
| 70 | + cp unifier/requirements_balanced.txt requirements_unifier.txt |
| 71 | + - name: Set up Python ${{ matrix.python-version }} |
| 72 | + uses: actions/setup-python@v5 |
| 73 | + with: |
| 74 | + python-version: ${{ matrix.python-version }} |
| 75 | + - name: Read Plugin requirements |
| 76 | + run: | |
| 77 | + python reader/reader.py |
| 78 | + - name: Install dependencies |
| 79 | + run: | |
| 80 | + python -m pip install --upgrade pip |
| 81 | + pip install -r requirements_unifier.txt |
| 82 | + pip install -r requirements.txt |
| 83 | + pip install pylint |
| 84 | + - name: Pylint analysis |
| 85 | + run: | |
| 86 | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') |
| 87 | +
|
| 88 | + build-linux-stable: |
| 89 | + name: "Linux (Stable)" |
| 90 | + runs-on: ubuntu-latest |
| 91 | + strategy: |
| 92 | + matrix: |
| 93 | + python-version: ["3.12", "3.13"] |
| 94 | + steps: |
| 95 | + - name: Download Plugin |
| 96 | + uses: actions/checkout@v4 |
| 97 | + - name: Download Unifier |
| 98 | + uses: actions/checkout@v4 |
| 99 | + with: |
| 100 | + repository: UnifierHQ/unifier |
| 101 | + path: unifier |
| 102 | + - name: Download dependency reader |
| 103 | + uses: actions/checkout@v4 |
| 104 | + with: |
| 105 | + repository: UnifierHQ/plugin-dependency-reader |
| 106 | + path: reader |
| 107 | + - name: Copy Unifier files |
| 108 | + run: | |
| 109 | + mkdir utils |
| 110 | + cp -r unifier/utils/* utils |
| 111 | + cp unifier/requirements_stable.txt requirements_unifier.txt |
| 112 | + - name: Set up Python ${{ matrix.python-version }} |
| 113 | + uses: actions/setup-python@v5 |
| 114 | + with: |
| 115 | + python-version: ${{ matrix.python-version }} |
| 116 | + - name: Read Plugin requirements |
| 117 | + run: | |
| 118 | + python reader/reader.py |
| 119 | + - name: Install dependencies |
| 120 | + run: | |
| 121 | + python -m pip install --upgrade pip |
| 122 | + pip install -r requirements_unifier.txt |
| 123 | + pip install -r requirements.txt |
| 124 | + pip install pylint |
| 125 | + - name: Pylint analysis |
| 126 | + run: | |
| 127 | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') |
| 128 | +
|
| 129 | + build-windows: |
| 130 | + name: "Windows (Optimized)" |
| 131 | + runs-on: windows-latest |
| 132 | + strategy: |
| 133 | + matrix: |
| 134 | + python-version: ["3.12"] |
| 135 | + steps: |
| 136 | + - name: Download Plugin |
| 137 | + uses: actions/checkout@v4 |
| 138 | + - name: Download Unifier |
| 139 | + uses: actions/checkout@v4 |
| 140 | + with: |
| 141 | + repository: UnifierHQ/unifier |
| 142 | + path: unifier |
| 143 | + - name: Download dependency reader |
| 144 | + uses: actions/checkout@v4 |
| 145 | + with: |
| 146 | + repository: UnifierHQ/plugin-dependency-reader |
| 147 | + path: reader |
| 148 | + - name: Copy Unifier files |
| 149 | + run: | |
| 150 | + New-Item -Path utils -ItemType Directory |
| 151 | + Copy-item -Force -Recurse unifier/utils/* -Destination utils/ |
| 152 | + Copy-item -Force unifier/requirements.txt -Destination requirements_unifier.txt |
| 153 | + - name: Set up Python ${{ matrix.python-version }} |
| 154 | + uses: actions/setup-python@v5 |
| 155 | + with: |
| 156 | + python-version: ${{ matrix.python-version }} |
| 157 | + - name: Read Plugin requirements |
| 158 | + run: | |
| 159 | + python reader/reader.py |
| 160 | + - name: Install dependencies |
| 161 | + run: | |
| 162 | + python -m pip install --upgrade pip |
| 163 | + pip install -r requirements_unifier.txt |
| 164 | + pip install -r requirements.txt |
| 165 | + pip install pylint |
| 166 | + - name: Pylint analysis |
| 167 | + run: | |
| 168 | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') |
| 169 | +
|
| 170 | + build-windows-balanced: |
| 171 | + name: "Windows (Balanced)" |
| 172 | + runs-on: windows-latest |
| 173 | + strategy: |
| 174 | + matrix: |
| 175 | + python-version: ["3.12"] |
| 176 | + steps: |
| 177 | + - name: Download Plugin |
| 178 | + uses: actions/checkout@v4 |
| 179 | + - name: Download Unifier |
| 180 | + uses: actions/checkout@v4 |
| 181 | + with: |
| 182 | + repository: UnifierHQ/unifier |
| 183 | + path: unifier |
| 184 | + - name: Download dependency reader |
| 185 | + uses: actions/checkout@v4 |
| 186 | + with: |
| 187 | + repository: UnifierHQ/plugin-dependency-reader |
| 188 | + path: reader |
| 189 | + - name: Copy Unifier files |
| 190 | + run: | |
| 191 | + New-Item -Path utils -ItemType Directory |
| 192 | + Copy-item -Force -Recurse unifier/utils/* -Destination utils/ |
| 193 | + Copy-item -Force unifier/requirements_balanced.txt -Destination requirements_unifier.txt |
| 194 | + - name: Set up Python ${{ matrix.python-version }} |
| 195 | + uses: actions/setup-python@v5 |
| 196 | + with: |
| 197 | + python-version: ${{ matrix.python-version }} |
| 198 | + - name: Read Plugin requirements |
| 199 | + run: | |
| 200 | + python reader/reader.py |
| 201 | + - name: Install dependencies |
| 202 | + run: | |
| 203 | + python -m pip install --upgrade pip |
| 204 | + pip install -r requirements_unifier.txt |
| 205 | + pip install -r requirements.txt |
| 206 | + pip install pylint |
| 207 | + - name: Pylint analysis |
| 208 | + run: | |
| 209 | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') |
| 210 | +
|
| 211 | + build-windows-stable: |
| 212 | + name: "Windows (Stable)" |
| 213 | + runs-on: windows-latest |
| 214 | + strategy: |
| 215 | + matrix: |
| 216 | + python-version: ["3.12", "3.13"] |
| 217 | + steps: |
| 218 | + - name: Download Plugin |
| 219 | + uses: actions/checkout@v4 |
| 220 | + - name: Download Unifier |
| 221 | + uses: actions/checkout@v4 |
| 222 | + with: |
| 223 | + repository: UnifierHQ/unifier |
| 224 | + path: unifier |
| 225 | + - name: Download dependency reader |
| 226 | + uses: actions/checkout@v4 |
| 227 | + with: |
| 228 | + repository: UnifierHQ/plugin-dependency-reader |
| 229 | + path: reader |
| 230 | + - name: Copy Unifier files |
| 231 | + run: | |
| 232 | + New-Item -Path utils -ItemType Directory |
| 233 | + Copy-item -Force -Recurse unifier/utils/* -Destination utils/ |
| 234 | + Copy-item -Force unifier/requirements_stable.txt -Destination requirements_unifier.txt |
| 235 | + - name: Set up Python ${{ matrix.python-version }} |
| 236 | + uses: actions/setup-python@v5 |
| 237 | + with: |
| 238 | + python-version: ${{ matrix.python-version }} |
| 239 | + - name: Read Plugin requirements |
| 240 | + run: | |
| 241 | + python reader/reader.py |
| 242 | + - name: Install dependencies |
| 243 | + run: | |
| 244 | + python -m pip install --upgrade pip |
| 245 | + pip install -r requirements_unifier.txt |
| 246 | + pip install -r requirements.txt |
| 247 | + pip install pylint |
| 248 | + - name: Pylint analysis |
| 249 | + run: | |
| 250 | + pylint --enable-all-extensions --extension-pkg-allow-list=orjson,ujson --disable=R,C,W $(git ls-files '*.py') |
0 commit comments