diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2026-01-09 13:12:02 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2026-05-06 13:01:37 +0200 |
| commit | 3807102f4fe51bb197bdde762151218205438e6c (patch) | |
| tree | fefbfb0177f72c093dfe368a374defe7a7bf5606 | |
| parent | d6b7870903d700302aa71a757cd42f33a3072488 (diff) | |
Added playwright integration.
| -rw-r--r-- | .github/workflows/tests.yml | 3 | ||||
| -rw-r--r-- | Dockerfile | 4 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | requirements/tests.txt | 1 |
4 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b2d1fcd9..b4664b5f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,6 +39,9 @@ jobs: run: | python -m pip install --upgrade pip setuptools python -m pip install -r requirements/tests.txt + - name: Install playwright browsers + run: | + python -m playwright install --with-deps chromium - name: Set up databases run: | PGPASSWORD="postgres" createuser -U postgres -d djangoproject --superuser -h localhost @@ -30,6 +30,10 @@ COPY ./requirements ./requirements RUN apt-get update \ && apt-get install --assume-yes --no-install-recommends ${BUILD_DEPENDENCIES} \ && python3 -m pip install --no-cache-dir -r ${REQ_FILE} \ + && if [ "${REQ_FILE}" = "requirements/tests.txt" ]; then \ + echo "Installing Playwright browsers..."; \ + python3 -m playwright install --with-deps chromium; \ + fi \ && apt-get purge --assume-yes --auto-remove ${BUILD_DEPENDENCIES} \ && apt-get distclean @@ -4,7 +4,7 @@ APP_LIST ?= accounts aggregator blog checklists contact dashboard djangoproject SCSS = djangoproject/scss STATIC = djangoproject/static -ci: compilemessages test +ci: compilemessages collectstatics test @python -m coverage report compilemessages: diff --git a/requirements/tests.txt b/requirements/tests.txt index 06222b35..7a030122 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -1,4 +1,5 @@ -r dev.txt coverage==7.13.5 +playwright==1.59.0 requests-mock==1.12.1 tblib>=3.0.0 |
