Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Selenium Tests
name: Playwright Tests

on:
pull_request:
Expand All @@ -14,8 +14,8 @@ permissions:
contents: read

jobs:
selenium-sqlite:
if: contains(github.event.pull_request.labels.*.name, 'selenium')
playwright-sqlite:
if: contains(github.event.pull_request.labels.*.name, 'playwright')
runs-on: ubuntu-latest
name: SQLite
timeout-minutes: 60
Expand All @@ -37,13 +37,15 @@ jobs:
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip wheel
- run: python -m pip install -r tests/requirements/py3.txt -e .
- name: Run Selenium tests
- name: Install Playwright browsers
run: python -m playwright install --with-deps chromium
- name: Run Playwright tests
working-directory: ./tests/
run: |
python -Wall runtests.py --verbosity 2 --noinput --selenium=chrome --headless --settings=test_sqlite --parallel 1
python -Wall runtests.py --verbosity 2 --noinput --playwright=chromium --settings=test_sqlite --parallel 1

selenium-postgresql:
if: contains(github.event.pull_request.labels.*.name, 'selenium')
playwright-postgresql:
if: contains(github.event.pull_request.labels.*.name, 'playwright')
runs-on: ubuntu-latest
name: PostgreSQL
timeout-minutes: 60
Expand Down Expand Up @@ -79,9 +81,11 @@ jobs:
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip wheel
- run: python -m pip install -r tests/requirements/py3.txt -r tests/requirements/postgres.txt -e .
- name: Install Playwright browsers
run: python -m playwright install --with-deps chromium
- name: Create PostgreSQL settings file
run: mv ./.github/workflows/data/test_postgres.py.tpl ./tests/test_postgres.py
- name: Run Selenium tests
- name: Run Playwright tests
working-directory: ./tests/
run: |
python -Wall runtests.py --verbosity 2 --noinput --selenium=chrome --headless --settings=test_postgres --parallel 1
python -Wall runtests.py --verbosity 2 --noinput --playwright=chromium --settings=test_postgres --parallel 1
20 changes: 12 additions & 8 deletions .github/workflows/schedule_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ jobs:
- run: npm install
- run: npm test

selenium-sqlite:
playwright-sqlite:
runs-on: ubuntu-latest
name: Selenium tests, SQLite
name: Playwright tests, SQLite
timeout-minutes: 60
steps:
- name: Checkout
Expand All @@ -113,14 +113,16 @@ jobs:
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip wheel
- run: python -m pip install -r tests/requirements/py3.txt -e .
- name: Run Selenium tests
- name: Install Playwright browsers
run: python -m playwright install --with-deps chromium
- name: Run Playwright tests
working-directory: ./tests/
run: |
python -Wall runtests.py --verbosity 2 --noinput --selenium=chrome --headless --settings=test_sqlite --parallel 1
python -Wall runtests.py --verbosity 2 --noinput --playwright=chromium --settings=test_sqlite --parallel 1

selenium-postgresql:
playwright-postgresql:
runs-on: ubuntu-latest
name: Selenium tests, PostgreSQL
name: Playwright tests, PostgreSQL
timeout-minutes: 60
services:
postgres:
Expand Down Expand Up @@ -154,12 +156,14 @@ jobs:
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip wheel
- run: python -m pip install -r tests/requirements/py3.txt -r tests/requirements/postgres.txt -e .
- name: Install Playwright browsers
run: python -m playwright install --with-deps chromium
- name: Create PostgreSQL settings file
run: mv ./.github/workflows/data/test_postgres.py.tpl ./tests/test_postgres.py
- name: Run Selenium tests
- name: Run Playwright tests
working-directory: ./tests/
run: |
python -Wall runtests.py --verbosity 2 --noinput --selenium=chrome --headless --settings=test_postgres --parallel 1
python -Wall runtests.py --verbosity 2 --noinput --playwright=chromium --settings=test_postgres --parallel 1

postgresql:
strategy:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
contents: read

jobs:
selenium-screenshots:
playwright-screenshots:
if: contains(join(github.event.pull_request.labels.*.name, '|'), 'screenshots')
runs-on: ubuntu-latest
name: Screenshots
Expand All @@ -37,10 +37,12 @@ jobs:
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip wheel
- run: python -m pip install -r tests/requirements/py3.txt -e .
- name: Install Playwright browsers
run: python -m playwright install --with-deps chromium

- name: Run Selenium tests with screenshots
- name: Run Playwright tests with screenshots
working-directory: ./tests/
run: python -Wall runtests.py --verbosity=2 --noinput --selenium=chrome --headless --screenshots --settings=test_sqlite --parallel=1
run: python -Wall runtests.py --verbosity=2 --noinput --playwright=chromium --screenshots --settings=test_sqlite --parallel=1

- name: Cache oxipng
uses: actions/cache@v6
Expand Down
257 changes: 0 additions & 257 deletions django/contrib/admin/tests.py

This file was deleted.

Loading
Loading