mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 01:54:04 +00:00
34 lines
616 B
YAML
34 lines
616 B
YAML
name: Run pre-commit hooks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
run-hooks:
|
|
name: Run pre-commit hooks
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repo ⚡️
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set Up Python 🐍
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install pre-commit 📦
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install --upgrade pre-commit
|
|
|
|
- name: Run pre-commit hooks ✅
|
|
run: make pre-commit-all
|