Skip to content

ci: test-e2e reworked to use TestPypi #363

ci: test-e2e reworked to use TestPypi

ci: test-e2e reworked to use TestPypi #363

Workflow file for this run

name: Pre-commit
# This workflow runs the same pre-commit hooks as configured in .pre-commit-config.yaml
# IMPORTANT: Keep tool versions synchronized between:
# 1. .pre-commit-config.yaml (rev fields)
# 2. pyproject.toml (dev dependencies)
# 3. This GitHub Actions workflow
#
# Version mapping:
# - pre-commit-hooks: v4.5.0
# - ruff-pre-commit: v0.1.6 -> ruff==0.1.6
# - mirrors-mypy: v1.19.1 -> mypy==1.19.1
# - pyproject.toml dev deps: pytest>=7.4.0, ruff==0.1.6, etc.
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
# Install pre-commit
uv pip install --system pre-commit==3.4.0
- name: Cache pre-commit
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: |
# Use exact same versions as .pre-commit-config.yaml
pre-commit run --all-files
env:
# Ensure pre-commit uses the specific versions from config
PRE_COMMIT_HOME: ~/.cache/pre-commit