diff options
author | 2021-01-09 14:19:08 -0800 | |
---|---|---|
committer | 2021-01-09 19:18:05 -0800 | |
commit | 720a32f6dd6bf49700b106bae6662c4e3903f9ee (patch) | |
tree | 719d6971fbe9a22171e8af7eb63f207e81377286 | |
parent | CI: run pre-commit hooks (diff) |
CI: install git in the container
Pre-commit requires git.
-rw-r--r-- | .github/workflows/lint-test-build-push.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/lint-test-build-push.yaml b/.github/workflows/lint-test-build-push.yaml index a08c232..5aa2180 100644 --- a/.github/workflows/lint-test-build-push.yaml +++ b/.github/workflows/lint-test-build-push.yaml @@ -102,6 +102,12 @@ jobs: docker exec snekbox_test /bin/bash -c 'pipenv install --system --deploy --dev && pip install numpy' + # Required by pre-commit. + - name: Install git + run: >- + docker exec snekbox_test /bin/bash -c + 'apt-get -y update && apt-get install -y git=1:2.20.*' + # Skip the flake8 hook because the following step will run it. - name: Run pre-commit hooks run: >- |