JSON and HTML report refactor #35
This file contains hidden or 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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.10" | |
| - uses: pre-commit/action@v3.0.0 | |
| - uses: pre-commit-ci/lite-action@v1.1.0 | |
| if: always() | |
| # Block for running pre-commit hooks only on latest commit | |
| # # Identify the files chaged in all commits | |
| # - id: changed-files | |
| # uses: tj-actions/changed-files@v36 | |
| # - uses: pre-commit/action@v3.0.0 | |
| # with: | |
| # # run pre-hooks on all commits | |
| # extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }} | |
| # - uses: pre-commit-ci/lite-action@v1.1.0 | |
| # if: always() |