File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,12 +217,11 @@ jobs:
217217 SERVICE_NAME=server
218218
219219 # create a minimal fake test to run migrations
220- mkdir -p "$COMPOSE_CI_SHARE_DIR"
221- touch "$COMPOSE_CI_SHARE_DIR/__init__.py"
220+ sudo touch "$COMPOSE_CI_SHARE_DIR/__init__.py"
222221 TMP_TEST_FILE="test_fake_$(date +%s)_$RANDOM.py"
223222 TMP_TEST_FILEPATH="${COMPOSE_CI_SHARE_DIR}/${TMP_TEST_FILE}"
224223
225- cat <<EOF > "$TMP_TEST_FILEPATH"
224+ sudo cat <<EOF > "$TMP_TEST_FILEPATH"
226225 from django.test import TestCase
227226
228227 class FakeMigrationTest(TestCase):
@@ -233,7 +232,7 @@ jobs:
233232 docker compose run --rm "$SERVICE_NAME" \
234233 ./manage.py test --keepdb -v 2 --pattern="$TMP_TEST_FILE"
235234
236- rm "$TMP_TEST_FILEPATH"
235+ sudo rm "$TMP_TEST_FILEPATH"
237236
238237 - name : 🕮 Validate latest graphql schema
239238 if : ${{ inputs.docker__run_graphql_check }}
You can’t perform that action at this time.
0 commit comments