pre-commit.yml 523 B

1234567891011121314151617
  1. pre-commit:
  2. name: Pre-Commit
  3. runs-on: ubuntu-latest
  4. steps:
  5. - uses: actions/checkout@v2
  6. - name: Set up Python
  7. uses: actions/setup-python@v1
  8. with:
  9. python-version: 3.7
  10. - name: Set Cache Key
  11. run: echo "::set-env name=PY::$(python --version --version | sha256sum | cut -d' ' -f1)"
  12. - uses: actions/cache@v1
  13. with:
  14. path: ~/.cache/pre-commit
  15. key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
  16. - uses: pre-commit/action@v1.0.1