Add missing set upstream flag to git push command #255
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 | |
| on: [push, pull_request] | |
| jobs: | |
| run_precommit: | |
| name: Run pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout repository | |
| - uses: actions/checkout@v6 | |
| # Setup Python and install pre-commit | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.8" | |
| - name: Install pre-commit | |
| run: | | |
| pip install -U pre-commit | |
| # Load cached pre-commit environment | |
| - name: set PY | |
| run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
| # Run pre-commit | |
| - name: Run pre-commit | |
| run: | | |
| pre-commit run --show-diff-on-failure --color=never --all-files --verbose |