Skip to content

Commit

Permalink
Switch to github runners and re enable canaries
Browse files Browse the repository at this point in the history
  • Loading branch information
npmenard committed Apr 16, 2024
1 parent e9df644 commit d47b892
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 74 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
# name: Hourly ESP32 Connection Canary
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 * * * *'
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 }}
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: X64
# 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
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
60 changes: 30 additions & 30 deletions .github/workflows/canary_summary.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# name: Daily ESP32 Connection Summary
name: Daily ESP32 Connection Summary

# on:
# workflow_call:
# secrets:
# MONGODB_TEST_OUTPUT_URI:
# required: true
# schedule:
# - cron: '30 23 * * *'
on:
workflow_call:
secrets:
MONGODB_TEST_OUTPUT_URI:
required: true
schedule:
- cron: '30 23 * * *'

# env:
# MONGODB_TEST_OUTPUT_URI: ${{ secrets.MONGODB_TEST_OUTPUT_URI }}
env:
MONGODB_TEST_OUTPUT_URI: ${{ secrets.MONGODB_TEST_OUTPUT_URI }}

# jobs:
# canary:
# runs-on: X64
# 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 daily_summary.py
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 daily_summary.py
2 changes: 1 addition & 1 deletion .github/workflows/license_finder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
license_finder:
name: Audit 3rd-Party Licenses
runs-on: [X64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/micro-rdk-dev-env:amd64
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:


build-micro-RDK:
runs-on: [X64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/micro-rdk-dev-env:amd64
needs: tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
changes:
name: Calculate changes
runs-on: [X64]
runs-on: ubuntu-latest
outputs:
src-esp32: ${{ steps.changes.outputs.src-esp32 }}
src-native: ${{ steps.changes.outputs.src-native }}
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
needs: changes
name: Tests, Format, Clippy Micro-RDK installer
if: ${{ needs.changes.outputs.src-cli == 'true'}}
runs-on: [X64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/micro-rdk-dev-env:amd64

Expand All @@ -81,7 +81,7 @@ jobs:
test_and_build:
needs: changes
name: Tests, Format, Clippy Micro-Rdk
runs-on: [X64]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/micro-rdk-dev-env:amd64
timeout-minutes: 20
Expand Down

0 comments on commit d47b892

Please sign in to comment.