auto transpile: pr2 #2075
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: "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 | |
- name: Set up node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- name: Create virtual environment and install dependencies | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
pip install "cython<3.0.0" wheel | |
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 | |