Skip to content

added sync true sample #19

added sync true sample

added sync true sample #19

Workflow file for this run

name: Python SDK Wrapper CI
on:
pull_request:
branches:
- main
workflow_dispatch:
env:
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
PROJECT_TOKEN: ${{ secrets.PROJECT_TOKEN }}
LT_SDK_DEBUG: true
SMARTUI_DEBUG: true
jobs:
smartui-python-sdk:
name: Execute Python sdk build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Step for pull_request event
run: |
echo "This is a pull_request event!"
git log -n 5 --format="%H %an %s" | while read line; do echo "$line"; done
echo "The latest commitId $(git log -n 2 --format='%H' | tail -n 1)"
echo "COMMIT_ID=$(git log -n 2 --format='%H' | tail -n 1)" >> $GITHUB_ENV
if: github.event_name == 'pull_request'
- name: Create Github URL
run: |
API_HOST=https://api.github.com
echo "The latest commitId is $COMMIT_ID"
GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
echo "GITHUB_URL: $GITHUB_URL"
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV
- name: Set up Python environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install NPM Dependencies
run: |
npm i @lambdatest/smartui-cli
- name: Install Python Dependencies and Execute Python Wrapper
run: |
pip install lambdatest-selenium-driver
npx smartui --version
npx smartui config:create smartui-web.json
npx smartui exec python SmartUI_SDK_LT_hub.py --config smartui-web.json