Pre-commit checks for sigopt/sigopt-server@refs/heads/pixeebot/drip-2024-09-03-pixee-python/sandbox-process-creation #1670
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 checks | |
permissions: read-all | |
run-name: Pre-commit checks for ${{ github.repository }}@${{ github.ref }} | |
on: | |
push: {} | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
hook: | |
- crosshair | |
- flake8 | |
- hadolint-docker | |
- mypy | |
- pylint | |
- shellcheck | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: pip install pipenv | |
- run: pipenv install --quiet --deploy --dev | |
- run: source .env && sudo ./tools/protobuf/install.sh "$PROTOBUF_VERSION" | |
- run: pipenv run ./tools/protobuf/compile.sh | |
- run: pipenv run pre-commit run --all-files ${{ matrix.hook }} | |
- run: git diff | |
pre-commit-eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: pip install pipenv pre-commit | |
- run: yarn install | |
- run: pipenv run pre-commit run --all-files eslint | |
- run: git diff |