Up redis_rs and bb8_redis (#59) #238
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 | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: [ '*' ] | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: cargo fmt | |
run: cargo fmt --all -- --check | |
clippy: | |
name: Rust Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features | |
py: | |
name: Python linters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: pip install ruff mypy | |
- name: Ruff check lint | |
run: ruff redis_rs tests | |
- name: Ruff check format | |
run: ruff format --check redis_rs tests | |
- name: Run mypy | |
run: mypy redis_rs tests |