-
Notifications
You must be signed in to change notification settings - Fork 39
35 lines (32 loc) · 1.17 KB
/
pre-commit-hook-run.yml
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
name: "Pre commit hook check"
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
jobs:
pr-title:
name: Pre commit hook check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.7'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip install setuptools
python3 -m pip install "cython<3.0.0" wheel
python3 -m pip install "PyYAML==5.4.1" --no-build-isolation
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
echo "# Dummy change for PR check" >> README.md
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: |
source venv/bin/activate
./hooks/pre-commit.sh