deps:(deps): bump pytest from 7.2.2 to 8.3.4 #1415
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
# GitHub action to check if pre-commit has been run. Runs from .pre-commit-config.yaml, where the pre-commit actions are. | |
name: run-pre-commit | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
permissions: | |
pull-requests: write | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
token: ${{ secrets.PAT }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install pre-commit | |
run: pip install pre-commit | |
- name: Run pre-commit | |
id: pre_commit | |
continue-on-error: true | |
run: | | |
if pre-commit run --color always --all-files; then | |
echo "Succeeded check passed" | |
else | |
echo "Failed, exiting" | |
exit 1 | |
fi | |