Update redis requirement from ~=4.5.4 to ~=4.6.0 #151
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: Lint code | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/lint.yaml" | |
- "locales/*.pot" | |
- "userbot/**" | |
- ".pre-commit-config.yaml" | |
- "dev-requirements.txt" | |
- "requirements.txt" | |
- "scripts/check_usages.py" | |
- "scripts/potctl.py" | |
- "pyproject.toml" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/lint.yaml" | |
- "locales/*.pot" | |
- "userbot/**" | |
- ".pre-commit-config.yaml" | |
- "dev-requirements.txt" | |
- "requirements.txt" | |
- "scripts/check_usages.py" | |
- "scripts/potctl.py" | |
- "pyproject.toml" | |
permissions: | |
contents: read | |
jobs: | |
check: | |
name: Check code style | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: pip | |
- name: Install packages | |
run: pip install -r dev-requirements.txt -r requirements.txt | |
- name: Load pre-commit cache files | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run checks | |
run: pre-commit run --all-files --show-diff-on-failure |