Skip to content

Adding pre-commit workflow to Github actions #2

Adding pre-commit workflow to Github actions

Adding pre-commit workflow to Github actions #2

name: Run pre-commit workflow
on:
pull_request:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: file_changes
name: Determine changed files in PR
uses: trilom/[email protected]
with:
prNumber: ${{ github.event.number }}
output: ' '
- uses: actions/setup-python@v5
name: Install Python 3.10
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -U pip setuptools
- uses: pre-commit/[email protected]
name: Configure and run pre-commit