fix(runtime): filelock issues #410
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 | |
# This will prevent multiple runs of the same workflow from running concurrently | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
# Trigger manually | |
workflow_dispatch: | |
# Trigger on any push to the master | |
push: | |
branches: | |
- master | |
# Trigger on any push to a PR that targets master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run-all-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install the latest version uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: latest | |
- name: create virtual environment | |
run: uv venv --python '3.10' | |
- name: install pre-commit | |
run: uv pip install pre-commit | |
- name: install pre-commit hooks | |
run: uv run pre-commit install | |
- name: Run pre-commit hooks | |
run: uv run pre-commit run --all-files |