Skip to content

Fix ci

Fix ci #51

Workflow file for this run

name: Tests
on:
push:
branches:
- 'main'
tags: [ '*' ]
pull_request:
branches:
- 'main'
jobs:
tests:
name: Rust test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: cargo test
run: cargo test
pytest:
name: pytest on redis
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
redis-version:
- '6'
- '7'
steps:
- uses: actions/checkout@v3
- 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
- name: Run pytest
run: hatch run pytest