Merge branch 'release/3.0.0' #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.9', '3.10', '3.11', '3.12'] | |
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.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
- 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 |