Skip to content

New translations musicbot_logs.pot (Russian) #609

New translations musicbot_logs.pot (Russian)

New translations musicbot_logs.pot (Russian) #609

Workflow file for this run

name: Code Checks
on: [push, pull_request]
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
pycheck1ver:
name: Python Lint/Format Checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Load cached pip dependencies
uses: actions/cache/restore@v4
id: cache
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('requirements.dev.txt') }}
restore-keys: |
pip-${{ runner.os }}-py${{ matrix.python-version }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.dev.txt
- name: Save pip dependencies cache
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('requirements.dev.txt') }}
- name: Check with black
run: |
VERNUM=${{ matrix.python-version }}
TARGETV="py${VERNUM/./}"
python -m black -t $TARGETV --diff --color --check ./
- name: Check imports with isort (black)
run: |
python -m isort --profile=black --check --diff --color ./
- name: Check with flake8
run: |
python -m flake8 ./
- name: Check with Pylint
run: |
pylint --recursive=y .
pytyping:
name: Python Type Checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 10
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Load cached pip dependencies
uses: actions/cache/restore@v4
id: cache
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('requirements.dev.txt') }}
restore-keys: |
pip-${{ runner.os }}-py${{ matrix.python-version }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.dev.txt
- name: Save pip dependencies cache
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('requirements.dev.txt') }}
- name: Check with MyPy on py${{ matrix.python-version }}
run: |
mypy --python-version ${{ matrix.python-version }} --warn-unused-ignores ./*.py