-
Notifications
You must be signed in to change notification settings - Fork 12
60 lines (57 loc) · 1.44 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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