Show diffs introduced by running pre-commit (especially black) #79
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
# SPDX-FileCopyrightText: 2022 Alec Delaney, written for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
name: Build CI | |
on: [pull_request, push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Set up Python 3.x (Latest) | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Checkout current repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install pre-commit | |
run: pip install pre-commit | |
- name: Run pre-commit | |
run: pre-commit run --all-files --show-diff-on-failure |