ci: test in kind cluster #1251
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: Python Test | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "**/*.py" | |
- ".github/workflows/*.yml" | |
pull_request: | |
paths: | |
- "**/*.py" | |
- ".github/workflows/*.yml" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
services: | |
redis: | |
image: redis:7 | |
ports: | |
- 6481:6379 | |
rabbitmq: | |
image: rabbitmq:3.12 | |
ports: | |
- 5784:5672 | |
postgres: | |
image: postgres:16 | |
ports: | |
- 5544:5432 | |
env: | |
POSTGRES_USER: remoulade | |
POSTGRES_HOST_AUTH_METHOD: trust | |
POSTGRES_DB: test | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install -e '.[dev]' | |
- name: Test | |
run: pytest --benchmark-skip |