Skip to content

Add redis compatible version field [MOD-6995] #78

Add redis compatible version field [MOD-6995]

Add redis compatible version field [MOD-6995] #78

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
- '**/*.rst'
- '**/*.md'
jobs:
run-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
max-parallel: 15
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
name: Python ${{ matrix.python-version }} test
steps:
- uses: actions/checkout@v2
- name: install python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: cache
uses: actions/cache@v1
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}-${{matrix.python-version}}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}-${{matrix.python-version}}
- name: install redis
run: |
sudo apt-get update -q
sudo apt-get install -qy redis
- name: run tests
run: |
pip install poetry
pip install -q -r dev_requirements.txt
tox
- name: build and install the package in this python version
run: |
poetry build
poetry install
- name: Upload codecov coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}