Hourly ESP32 Connection Canary #7510
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: Hourly ESP32 Connection Canary | |
on: | |
workflow_call: | |
secrets: | |
MONGODB_TEST_OUTPUT_URI: | |
required: true | |
ESP32_CANARY_ROBOT: | |
required: true | |
ESP32_CANARY_API_KEY: | |
required: true | |
ESP32_CANARY_API_KEY_ID: | |
required: true | |
schedule: | |
- cron: '0 * * * *' | |
env: | |
MONGODB_TEST_OUTPUT_URI: ${{ secrets.MONGODB_TEST_OUTPUT_URI }} | |
ESP32_CANARY_ROBOT: ${{ secrets.ESP32_CANARY_ROBOT }} | |
ESP32_CANARY_API_KEY: ${{ secrets.ESP32_CANARY_API_KEY }} | |
ESP32_CANARY_API_KEY_ID: ${{ secrets.ESP32_CANARY_API_KEY_ID }} | |
jobs: | |
python-canary: | |
runs-on: "ubuntu-latest" | |
defaults: | |
run: | |
working-directory: ./canary | |
shell: bash | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Run Python Canary | |
run: | | |
python -m pip install -r requirements.txt | |
python canary_test.py | |
go-canary: | |
runs-on: "ubuntu-latest" | |
defaults: | |
run: | |
working-directory: ./canary | |
shell: bash | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.3' | |
- name: Run Go Canary | |
run: | | |
go run canary.go |