mirror of
https://github.com/wekan/wekan.git
synced 2026-01-07 01:58:49 +01:00
Add Selenium UI testing workflow
This commit is contained in:
parent
8d23bbb91d
commit
64bec1a886
1 changed files with 41 additions and 0 deletions
41
.github/workflows/ui-testing.yml
vendored
Normal file
41
.github/workflows/ui-testing.yml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
name: Selenium UI Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
selenium-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
repository: omriza5/wekan-selenium
|
||||
token: ${{ secrets.UI_TESTING_GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Install Chrome and ChromeDriver
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y google-chrome-stable
|
||||
|
||||
- name: Run Selenium tests
|
||||
env:
|
||||
HEADLESS: true
|
||||
WEKAN_URL: http://${{ secrets.WEKAN_URL }}:80
|
||||
run: |
|
||||
pytest tests/ -v
|
||||
Loading…
Add table
Add a link
Reference in a new issue