Skip to content

Merge pull request #85 from hugovk/develop #52

Merge pull request #85 from hugovk/develop

Merge pull request #85 from hugovk/develop #52

name: test
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop ]
env:
FORCE_COLOR: 1
jobs:
# Run os specific tests on the slower OS X/Windows machines
windows_osx:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: ['macos-latest', 'windows-latest']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Python version
run: python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[tests]"
- name: Test with pytest
run: python -m pytest
# Run all tests including Redis on Linux
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Start Redis
uses: supercharge/redis-github-action@1.7.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Python version
run: python --version
- name: Install dependencies
run: |
python -m pip install tox
- name: Test with pytest
run: tox -p all