-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (29 loc) · 1.02 KB
/
Copy pathpre-commit-workflow.yaml
File metadata and controls
38 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## Pre-commit Workflow
# Last update: 2025-09-10
# Save this file to './.github/workflows/pre-commit-workflow.yaml'
# Name of the workflow
name: pre-commit
# Controls on when the workflow will run
on:
pull_request:
push:
branches: ["*"]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Job name
pre-commit:
# Type of machine to run the job on
runs-on: ubuntu-latest
# Sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repository content - https://github.com/actions/checkout
uses: actions/checkout@v5
- name: Setup Python - https://github.com/actions/setup-python
uses: actions/setup-python@v6
with:
python-version: "3.x" # Latest stable major version of Python
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
- name: Pre-commit action - https://github.com/pre-commit/action
uses: pre-commit/action@v3.0.1