reply fix #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pylint | |
on: [push] | |
jobs: | |
build-linux: | |
name: "Linux (Optimized)" | |
runs-on: ubuntu-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: | | |
mkdir utils | |
cp -r unifier/utils/* utils | |
cp unifier/requirements.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') | |
build-linux-stable: | |
name: "Linux (Stable)" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "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: | | |
mkdir utils | |
cp -r unifier/utils/* utils | |
cp unifier/requirements_stable.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') | |
build-windows: | |
name: "Windows (Optimized)" | |
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.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') | |
build-windows-stable: | |
name: "Windows (Stable)" | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "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_stable.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') |