1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00
Rare/.github/workflows/checks.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

name: "Checks"
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'rare/**'
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- main
paths:
- 'rare/**'
jobs:
pylint:
strategy:
matrix:
2024-01-22 11:27:16 +13:00
os: ['macos-latest', 'windows-latest', 'ubuntu-latest']
version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
2023-12-06 22:08:36 +13:00
- uses: actions/checkout@v3
- name: Set up Python
2023-12-06 22:08:36 +13:00
uses: actions/setup-python@v4
with:
2024-01-22 11:22:50 +13:00
python-version: ${{ matrix.version }}
2023-12-06 22:08:36 +13:00
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
2023-02-04 04:19:28 +13:00
pip3 install astroid
pip3 install pylint
- name: Install Target Dependencies
run: |
pip3 install -r requirements.txt
pip3 install -r requirements-presence.txt
- name: Install Development Dependencies
run: |
pip3 install qstylizer
- name: Analysis with pylint
run: |
2023-12-06 22:08:36 +13:00
python3 -m pylint -E rare --jobs=3 --disable=E0611,E1123,E1120 --ignore=ui,singleton.py --extension-pkg-whitelist=PyQt5 --generated-members=PyQt5.*,orjson.*