mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 21:58:49 +01:00
yaml file
This commit is contained in:
parent
98325faac5
commit
124c7db569
1 changed files with 42 additions and 0 deletions
42
.github/workflows/ui-testing.yaml
vendored
Normal file
42
.github/workflows/ui-testing.yaml
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# .github/workflows/ui-testing.yaml
|
||||
name: Selenium UI Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
|
||||
jobs:
|
||||
selenium-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1 # Fetch only the latest commit to speed up the checkout process
|
||||
repository: RabeeaFaraj/wekan_selenium # Replace with your UI testing repo
|
||||
token: ${{ secrets.UI_TESTING_GITHUB_TOKEN }} # Use the token to access the repo
|
||||
|
||||
- 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://52.214.162.101:80
|
||||
run: |
|
||||
pytest tests/ -v
|
||||
Loading…
Add table
Add a link
Reference in a new issue