Skip to content

Commit 0fbc98a

Browse files
committed
Add a Selenium GitHub action
1 parent 20c948d commit 0fbc98a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Selenium Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
selenium-tests:
11+
name: Selenium Tests (Python 3.13, Django 5.2)
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set up Python 3.13
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.13"
21+
22+
- name: Install Chrome
23+
uses: browser-actions/setup-chrome@v1
24+
with:
25+
chrome-version: stable
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip wheel setuptools
30+
pip install selenium coverage
31+
pip install "Django~=5.2"
32+
pip install Pillow django-mptt
33+
pip install -e .
34+
35+
- name: Run all tests
36+
run: |
37+
cd tests
38+
coverage run manage.py test -v2 --keepdb testapp
39+
coverage report -m

0 commit comments

Comments
 (0)