From d1aa3efc8bfab507928ef0d4cb7c7492c4c6566c Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Tue, 14 Feb 2023 19:43:15 +0530 Subject: [PATCH 1/5] Create samples.yml --- .github/workflows/samples.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/samples.yml diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml new file mode 100644 index 00000000..5b34ece3 --- /dev/null +++ b/.github/workflows/samples.yml @@ -0,0 +1,39 @@ +name: Python Selenium Script + +on: + schedule: + - cron: '0 */12 * * *' + +jobs: + run-selenium: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python 3 + uses: actions/setup-python@v3 + with: + python-version: 3.x + + - name: Install dependencies + run: | + pip install selenium + + - name: Install Chrome + run: | + sudo apt-get update + sudo apt-get install -y google-chrome-stable + + - name: Install ChromeDriver + run: | + wget https://chromedriver.storage.googleapis.com/109.0.5414.74/chromedriver_linux64.zip + unzip chromedriver_linux64.zip + sudo mv chromedriver /usr/bin/chromedriver + sudo chown root:root /usr/bin/chromedriver + sudo chmod +x /usr/bin/chromedriver + + - name: Run Selenium script + run: | + python antmedia-samples.py From 14eb4eb7e876d97c46ac7cf558eb385ea0ea0290 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Mon, 20 Feb 2023 13:04:51 +0530 Subject: [PATCH 2/5] Update samples.yml --- .github/workflows/samples.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml index 5b34ece3..ced3bfdb 100644 --- a/.github/workflows/samples.yml +++ b/.github/workflows/samples.yml @@ -1,13 +1,16 @@ -name: Python Selenium Script +name: Python Selenium Samples Test Script -on: - schedule: - - cron: '0 */12 * * *' +on: + schedule: + - cron: '0 */12 * * *' jobs: run-selenium: runs-on: ubuntu-latest + env: + WEBHOOK_URL: ${{ secrets.WEBHOOK }} + steps: - name: Checkout code uses: actions/checkout@v3 @@ -20,6 +23,7 @@ jobs: - name: Install dependencies run: | pip install selenium + pip install requests - name: Install Chrome run: | From be492a8261f283d97b673dfad8a3666e0a67b4ca Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Sun, 5 Mar 2023 21:21:19 +0530 Subject: [PATCH 3/5] Update samples.yml --- .github/workflows/samples.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml index ced3bfdb..36054198 100644 --- a/.github/workflows/samples.yml +++ b/.github/workflows/samples.yml @@ -25,6 +25,11 @@ jobs: pip install selenium pip install requests + - name: Install FFmpeg + run: | + sudo apt-get update + sudo apt-get install -y ffmpeg + - name: Install Chrome run: | sudo apt-get update From cd886e2ad0e3d558e44d9f5057910b272cd27fa1 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Mon, 20 Mar 2023 12:51:42 +0530 Subject: [PATCH 4/5] Update samples.yml --- .github/workflows/samples.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml index 36054198..2c1b7767 100644 --- a/.github/workflows/samples.yml +++ b/.github/workflows/samples.yml @@ -1,4 +1,4 @@ -name: Python Selenium Samples Test Script +name: Selenium-Samples-Test-Script on: schedule: @@ -29,15 +29,26 @@ jobs: run: | sudo apt-get update sudo apt-get install -y ffmpeg + + - name: Install SRT + run: | + git clone https://github.com/Haivision/srt.git + cd srt + sudo apt-get install tclsh pkg-config cmake libssl-dev build-essential + ./configure + make + sudo make install + cd .. - name: Install Chrome run: | - sudo apt-get update - sudo apt-get install -y google-chrome-stable + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + sudo dpkg -i google-chrome-stable_current_amd64.deb - name: Install ChromeDriver run: | - wget https://chromedriver.storage.googleapis.com/109.0.5414.74/chromedriver_linux64.zip + latest_version=$(curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE) + wget "https://chromedriver.storage.googleapis.com/$latest_version/chromedriver_linux64.zip" unzip chromedriver_linux64.zip sudo mv chromedriver /usr/bin/chromedriver sudo chown root:root /usr/bin/chromedriver From 580b8f8d28ed04f9bf909ae599aabc1fdcafb9f4 Mon Sep 17 00:00:00 2001 From: yashtandon113 <82374739+yashtandon113@users.noreply.github.com> Date: Fri, 25 Aug 2023 17:27:05 +0530 Subject: [PATCH 5/5] Update samples.yml --- .github/workflows/samples.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml index 2c1b7767..b7954c9a 100644 --- a/.github/workflows/samples.yml +++ b/.github/workflows/samples.yml @@ -1,4 +1,4 @@ -name: Selenium-Samples-Test-Script +name: Python Selenium Script on: schedule: @@ -47,9 +47,9 @@ jobs: - name: Install ChromeDriver run: | - latest_version=$(curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE) - wget "https://chromedriver.storage.googleapis.com/$latest_version/chromedriver_linux64.zip" - unzip chromedriver_linux64.zip + wget "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip" + unzip chromedriver-linux64.zip + cd chromedriver-linux64 sudo mv chromedriver /usr/bin/chromedriver sudo chown root:root /usr/bin/chromedriver sudo chmod +x /usr/bin/chromedriver