aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint-test-build-push.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/lint-test-build-push.yaml b/.github/workflows/lint-test-build-push.yaml
index 5aa2180..700fba9 100644
--- a/.github/workflows/lint-test-build-push.yaml
+++ b/.github/workflows/lint-test-build-push.yaml
@@ -108,11 +108,12 @@ jobs:
docker exec snekbox_test /bin/bash -c
'apt-get -y update && apt-get install -y git=1:2.20.*'
+ # pre-commit's venv doesn't work with user installs.
# Skip the flake8 hook because the following step will run it.
- name: Run pre-commit hooks
run: >-
docker exec snekbox_test /bin/bash -c
- 'SKIP=flake8 pre-commit run --all-files'
+ 'PIP_USER=0 SKIP=flake8 pre-commit run --all-files'
# This runs `flake8` in the container and asks `flake8` to output
# linting errors in the format of the command for registering workflow