Skip to content

chore: update Redis dependency version from >=7.1.0 to >=5.0.0 in pyp… #10

chore: update Redis dependency version from >=7.1.0 to >=5.0.0 in pyp…

chore: update Redis dependency version from >=7.1.0 to >=5.0.0 in pyp… #10

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
paths-ignore:
- "README.md"
- "docs/**"
- "*.md"
pull_request:
branches: ["main"]
paths-ignore:
- "README.md"
- "docs/**"
- "*.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-and-format:
name: Code Quality & Linting
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install packages
run: uv sync --dev --locked
- name: Cache pre-commit hooks
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-${{ runner.os }}-
- name: Install pre-commit hooks
run: uv run pre-commit run --all-files --show-diff-on-failure
test:
name: Test Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: uv sync --dev --locked
# - name: Run tests with coverage
# run: |
# uv run coverage run -m pytest
# uv run coverage xml -o coverage.xml
# uv run coverage report -m
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v5
# if: always()
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files : ./coverage.xml
# flags: unittests
# name: codecov-python-${{ matrix.python-version }}
# fail_ci_if_error: false
all-checks:
name: All Checks Passed
runs-on: ubuntu-latest
needs: [lint-and-format, test]
if: always()
steps:
- name: Check all jobs
run: |
if [[ "${{ needs.lint-and-format.result }}" != "success" ||
"${{ needs.test.result }}" != "success" ]]; then
echo "One or more checks failed"
exit 1
fi
echo "All checks passed successfully"