Skip to content

Commit

Permalink
Add pre-commit hook to GitHub workflow
Browse files Browse the repository at this point in the history
Copy .pre-commit-config.yaml to project root
  • Loading branch information
fmhoeger committed Jan 13, 2024
1 parent 38c6480 commit f14df05
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pyln-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,14 @@ jobs:
- name: Run pyln tests
timeout-minutes: 5
run: cd tests && poetry run pytest -v

pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Copy .pre-commit-config.yaml to project root
run: cp tests/.pre-commit-config.yaml .
- uses: pre-commit/[email protected]

0 comments on commit f14df05

Please sign in to comment.