Skip to content

Bump pytest from 8.1.1 to 8.3.1 #641

Bump pytest from 8.1.1 to 8.3.1

Bump pytest from 8.1.1 to 8.3.1 #641

Workflow file for this run

name: test-workflow
on:
# When any branch in the repository is pushed
push:
# When a pull request is created
pull_request:
# When manually triggered to run
workflow_dispatch:
jobs:
lint:
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
name: Lint ${{ matrix.python-version }}
runs-on: 'ubuntu-20.04'
container: python:${{ matrix.python-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Lint code
run: |
pip install -c requirements.txt -r requirements-lint.txt
lintlizard --ci
# Run tests
test:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: ['ubuntu-20.04']
redis-version: [4, 5, "6.2.6", "7.0.9"]
redis-py-version: [3.3.0, 4.6.0]
# Do not cancel any jobs when a single job fails
fail-fast: false
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with Redis ${{ matrix.redis-version }} and redis-py==${{ matrix.redis-py-version }}
runs-on: ${{ matrix.os }}
container: python:${{ matrix.python-version }}
services:
redis:
image: redis:${{ matrix.redis-version }}
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-test.txt
pip install redis==${{ matrix.redis-py-version }}
- name: Run tests
run: pytest
env:
# The hostname used to communicate with the Redis service container
REDIS_HOST: redis