Fixes an IndexError when using a debug server without staged experiments #330
Workflow file for this run
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: precommit | |
on: [push, pull_request] | |
jobs: | |
precommit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache pre-commit # taken from https://github.com/pre-commit/action/blob/main/action.yml | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/0.4.0/install.sh | sh | |
- name: Install pre-commit | |
run: uv tool install pre-commit --with pre-commit-uv | |
- name: Run pre-commit | |
run: uv tool run pre-commit run --show-diff-on-failure --color=always --all-files |