Merge pull request #295 from nerc-project/new_coldfront_changes #1748
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: Run pre-commit checks | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| run-linters: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ^3.10 | |
| - name: Configure caching | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: precommit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
| - name: Install requirements | |
| run: | | |
| pip install -r test-requirements.txt | |
| - name: Run linters | |
| run: | | |
| pre-commit run --all-files |