Skip to content

Commit

Permalink
Add pre-commit job to GitHub CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fmhoeger committed Jan 19, 2024
1 parent 4e85e67 commit 4846741
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pyln-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.11
check-latest: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -28,3 +29,17 @@ 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
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
check-latest: true
- name: Copy .pre-commit-config.yaml to project root
run: cp tests/.pre-commit-config.yaml .
- name: Run pre-commit hook
uses: pre-commit/[email protected]

0 comments on commit 4846741

Please sign in to comment.