Skip to content

chore: actualiza python a 3.12 #37

chore: actualiza python a 3.12

chore: actualiza python a 3.12 #37

name: pre-commit-main
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# required to grab the history of the PR
fetch-depth: 0
# Not needed since uv installs python automatically
# - uses: actions/setup-python@v5
# with:
# python-version-file: ".python-version"
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.4.3/install.sh | sh
# Needed for mypy, since the pre-commit hook is run in "system" mode
- name: Install dependencies
run: |
uv sync --dev --frozen
# Workaround to allow pre-commit to find the venv where dependencies are installed
- run: |
echo "$PWD/.venv/bin" >> $GITHUB_PATH
uv pip install pip
- uses: pre-commit/[email protected]