2022-09-12 05:46:33 +12:00
|
|
|
|
|
|
|
name: "Checks"
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- 'rare/**'
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- 'rare/**'
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pylint:
|
2024-01-22 11:21:40 +13:00
|
|
|
strategy:
|
2024-05-16 22:38:16 +12:00
|
|
|
fail-fast: false
|
2024-01-22 11:21:40 +13:00
|
|
|
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']
|
2024-01-22 11:21:40 +13:00
|
|
|
runs-on: ${{ matrix.os }}
|
2022-09-12 05:46:33 +12:00
|
|
|
steps:
|
2023-12-06 22:08:36 +13:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-12 05:46:33 +12:00
|
|
|
- name: Set up Python
|
2023-12-06 22:08:36 +13:00
|
|
|
uses: actions/setup-python@v4
|
2022-09-12 05:46:33 +12:00
|
|
|
with:
|
2024-01-22 11:22:50 +13:00
|
|
|
python-version: ${{ matrix.version }}
|
2023-12-06 22:08:36 +13:00
|
|
|
- name: Install dependencies
|
2022-09-12 05:46:33 +12:00
|
|
|
run: |
|
2023-01-13 04:38:05 +13:00
|
|
|
python3 -m pip install --upgrade pip
|
2023-02-04 04:19:28 +13:00
|
|
|
pip3 install astroid
|
2023-01-13 04:38:05 +13:00
|
|
|
pip3 install pylint
|
2022-09-12 05:46:33 +12:00
|
|
|
- name: Install Target Dependencies
|
|
|
|
run: |
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
pip3 install -r requirements-presence.txt
|
2023-03-04 03:51:26 +13:00
|
|
|
- name: Install Development Dependencies
|
|
|
|
run: |
|
|
|
|
pip3 install qstylizer
|
2022-09-12 05:46:33 +12:00
|
|
|
- name: Analysis with pylint
|
|
|
|
run: |
|
2024-05-16 19:49:51 +12:00
|
|
|
python3 -m pylint rare
|