Skip to content

Fix test requirements and simplified tox config #76

Fix test requirements and simplified tox config

Fix test requirements and simplified tox config #76

Workflow file for this run

# This is GitHub Action for tests
name: test
on:
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11.3"]
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run pytest
env:
REDIS_HOST: redis
TOXENV: pytest
TOX_TOXENV_PASSENV: REDIS_HOST
run: |
pip install -r requirements-tests.txt
tox