Update single_bb8.rs: fix fmt #249
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: Tests | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: [ '*' ] | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
tests: | |
name: Rust test | |
strategy: | |
max-parallel: 3 | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: cargo test | |
run: cargo test -F rustls | |
pytest: | |
name: pytest on redis | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
redis-version: | |
- '6' | |
- '7' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install dependencies | |
run: pip install -U hatch | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- name: Build develop | |
run: hatch run maturin develop -F rustls | |
- name: Run pytest | |
run: hatch run pytest |