Skip to content

Commit 3807102

Browse files
committed
Added playwright integration.
1 parent d6b7870 commit 3807102

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
run: |
4040
python -m pip install --upgrade pip setuptools
4141
python -m pip install -r requirements/tests.txt
42+
- name: Install playwright browsers
43+
run: |
44+
python -m playwright install --with-deps chromium
4245
- name: Set up databases
4346
run: |
4447
PGPASSWORD="postgres" createuser -U postgres -d djangoproject --superuser -h localhost

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ COPY ./requirements ./requirements
3030
RUN apt-get update \
3131
&& apt-get install --assume-yes --no-install-recommends ${BUILD_DEPENDENCIES} \
3232
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
33+
&& if [ "${REQ_FILE}" = "requirements/tests.txt" ]; then \
34+
echo "Installing Playwright browsers..."; \
35+
python3 -m playwright install --with-deps chromium; \
36+
fi \
3337
&& apt-get purge --assume-yes --auto-remove ${BUILD_DEPENDENCIES} \
3438
&& apt-get distclean
3539

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ APP_LIST ?= accounts aggregator blog checklists contact dashboard djangoproject
44
SCSS = djangoproject/scss
55
STATIC = djangoproject/static
66

7-
ci: compilemessages test
7+
ci: compilemessages collectstatics test
88
@python -m coverage report
99

1010
compilemessages:

requirements/tests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r dev.txt
22
coverage==7.13.5
3+
playwright==1.59.0
34
requests-mock==1.12.1
45
tblib>=3.0.0

0 commit comments

Comments
 (0)