-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (39 loc) · 1.02 KB
/
canary.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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:
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 Canary
run: |
python -m pip install -r requirements.txt
python canary_test.py