Python 24x7 script #51060
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python 24x7 script | |
on: | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
run-selenium: | |
runs-on: ubuntu-latest | |
env: | |
WEBHOOK_URL: ${{ secrets.WEBHOOK }} | |
SERVER_IP: ${{ secrets.SERVER_IP }} | |
USERNAME: ${{ secrets.USERNAME }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
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 requests | |
pip install paramiko | |
- name: Run staging script | |
run: | | |
python 24x7-testing/24x7-test1.py |