π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
add precommit as GHA (#1049)
Jirka Borovec6bb5d92fbeec
diff --git a/.github/workflows/format.yml b/.github/workflows/format.ymlindex 0cfef1358..824ae899a 100644--- a/.github/workflows/format.yml+++ b/.github/workflows/format.yml@@ -62,3 +62,22 @@ jobs:- name: Run doctestrun: make doctest++ pre-commit-check:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2+ - uses: actions/setup-python@v2++ - name: set PY+ run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV+ - uses: actions/cache@v2+ with:+ path: ~/.cache/pre-commit+ key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}++ - uses: pre-commit/[email protected]+ # this action also provides an additional behaviour when used in private repositories+ # when configured with a github token, the action will push back fixes to the pull request branch+ # with:+ # token: ${{ secrets.GITHUB_TOKEN }}