Dependency maintenance (drop Py3.8, add Py3.11/3.12/3.13, update numpy/pandas to 2.0) #1804
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 check hooks | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| pre-commit-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: 3.9 | |
| - name: Cache pip dependencies | |
| id: cache-pip-dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| # Ubuntu-specific, see | |
| # https://github.com/actions/cache/blob/main/examples.md#python---pip | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install 'pre-commit>=2.10.1' | |
| shell: bash | |
| - name: Run pre-commit large file check | |
| run: pre-commit run --all-files check-added-large-files | |
| - name: Run pre-commit YAML check # for GitHub Actions configs | |
| run: pre-commit run --all-files check-yaml |