Skip to content

Commit 0f757ee

Browse files
committed
test to fix bots
1 parent fbba6da commit 0f757ee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/test_docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
run: |
4444
CONTAINER_ID="$(docker run --rm -v $(pwd):/root/playwright --name playwright-docker-test -d -t playwright-python:localbuild /bin/bash)"
4545
docker exec --workdir /root/playwright/ "${CONTAINER_ID}" pip install -r local-requirements.txt
46+
docker exec --workdir /root/playwright/ "${CONTAINER_ID}" pip install -e .
4647
docker exec --workdir /root/playwright/ "${CONTAINER_ID}" xvfb-run pytest -vv

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ RUN su pwuser -c "mkdir /tmp/pw && cd /tmp/pw && \
7474
pip install /tmp/playwright-1.0-py3-none-manylinux1_x86_64.whl && \
7575
python -m playwright install" && \
7676
rm -rf /tmp/pw && rm /tmp/playwright-1.0-py3-none-manylinux1_x86_64.whl
77+
78+
# 3. Symlink downloaded browsers for root user
79+
RUN mkdir /root/.cache/ && \
80+
ln -s /home/pwuser/.cache/ms-playwright/ /root/.cache/ms-playwright

0 commit comments

Comments
 (0)