Dev #389
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: Lint | |
on: | |
pull_request: | |
env: | |
PYTHON_VERSION: "3.8" | |
defaults: | |
run: | |
shell: bash -l -eo pipefail {0} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Update pip and install lint utilities | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pre-commit | |
pre-commit install-hooks | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
prNumber: ${{ github.event.number }} | |
output: ' ' | |
- name: Lint modified files | |
run: pre-commit run --files ${{ steps.file_changes.outputs.files }} |