chore: actualiza python a 3.12 #37
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: 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] |