Adding tmt packit automation #29
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-checks | |
on: | |
pull_request | |
jobs: | |
pre_commit: | |
name: Check code with precommit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup environment | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run precommit check | |
run: | | |
pre-commit run --file bin/* --files lib/dracut/modules.d/81initoverlayfs/* --files scripts/* |