Skip to content

Commit 96346b1

Browse files
committed
fix(ci): use correct path for requirements.txt in Docker build
The Docker build context is the project root, so COPY must use the full relative path. Also add git config for test fixtures.
1 parent 4ba1b73 commit 96346b1

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

tests/e2e/plugin-hooks/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
&& apt-get clean \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
# Install Python test dependencies
13-
COPY requirements.txt /tmp/requirements.txt
14-
RUN pip install --no-cache-dir -r /tmp/requirements.txt
15-
1612
WORKDIR /workspace
1713

1814
# Copy project files (context provided by CI)
1915
COPY . .
2016

17+
# Install Python test dependencies
18+
RUN pip install --no-cache-dir -r tests/e2e/plugin-hooks/requirements.txt
19+
20+
# Configure git for tests (conftest.py uses git init)
21+
RUN git config --global user.name "CI Bot" \
22+
&& git config --global user.email "ci@test.local" \
23+
&& git config --global init.defaultBranch main
24+
2125
# Run E2E tests
2226
CMD ["python3", "-m", "pytest", "tests/e2e/plugin-hooks/", "-v", "--timeout=30", "--tb=short"]

0 commit comments

Comments
 (0)