Add Simple and Advanced Geometry Dataset Generators #6
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
name: Pre-commit | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- uses: pre-commit/[email protected] | |
id: precommit | |
continue-on-error: true | |
- name: Comment on PR if pre-commit failed | |
if: steps.precommit.outcome == 'failure' | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '❌ Pre-commit checks failed. Please run `pre-commit run --all-files` locally and fix the issues.' | |
}) | |
- name: Exit with pre-commit status | |
if: steps.precommit.outcome == 'failure' | |
run: exit 1 |