Skip to content

Fix workflow errors: missing services, deprecated commands, and exception handling #31

Fix workflow errors: missing services, deprecated commands, and exception handling

Fix workflow errors: missing services, deprecated commands, and exception handling #31

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
paths:
- '**.py'
- 'pyproject.toml'
- 'requirements.txt'
- '.github/workflows/test.yml'
pull_request:
branches: [ "master" ]
paths:
- '**.py'
- 'pyproject.toml'
- 'requirements.txt'
- '.github/workflows/test.yml'
jobs:
test:
runs-on: ubuntu-latest
services:
memcached:
image: memcached:1.6-alpine
ports:
- 11211:11211
redis:
image: redis:alpine
ports:
- 6379:6379
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv venv
uv sync
- name: Activate virtual environment and run tests
run: |
source .venv/bin/activate
coverage run -m pytest
coverage report