latency test #23339
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: latency test | |
on: | |
workflow_dispatch: | |
# Triggers the workflow every 30 minutes at 15 and 45 minutes past the hour | |
schedule: | |
- cron: "15,45 * * * *" | |
# push: | |
# branches: | |
# - latency-test | |
jobs: | |
login_to_remediation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
timeout-minutes: 10 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run latency test | |
id: latency_test | |
env: | |
email_latency: ${{ secrets.EMAIL_LATENCY }} | |
login_pass_latency: ${{ secrets.LOGIN_PASS_LATENCY }} | |
run: | | |
python latency.py | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: "Update latency logs with new data" | |
author_name: bvolovat | |
author_email: [email protected] | |
commit: --signoff | |
pull: '--ff-only' | |
add: ./logs/* |