[tuner] Add CI for all tuning PR #18
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 Checks | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/pre-commit.yml" | |
- ".pre-commit-config.yaml" | |
- "tuning/*" | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10.12' | |
- name: Install dev dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Run pre-commit test | |
run: pre-commit run --all-files --show-diff-on-failure --color=always | |