Skip to content

Scheduled - main branch #249

Scheduled - main branch

Scheduled - main branch #249

name: Daily Test Run - Bare Metal - Main Branch
run-name: Scheduled - main branch
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
run-tests-main:
runs-on: self-hosted
permissions:
packages: write
contents: read
steps:
# - id: check-date
# if: ${{ github.event_name != 'workflow_dispatch' }}
# uses: green-coding-solutions/eco-ci-activity-checker@main
# with:
# repo: 'green-coding-solutions/green-metrics-tool'
# branch: 'main'
# workflow-id: 45267391
# - if: ${{ github.event_name == 'workflow_dispatch' || steps.check-date.outputs.should_run == 'true'}}
- name: 'Checkout repository'
uses: actions/checkout@v4
with:
ref: 'main'
submodules: 'true'
- name: Eco CI Energy Estimation - Initialize
uses: green-coding-solutions/eco-ci-energy-estimation@v3
with:
task: start-measurement
# - if: ${{ github.event_name == 'workflow_dispatch' || steps.check-date.outputs.should_run == 'true'}}
- name: 'Setup, Run, and Teardown Tests'
uses: ./.github/actions/gmt-pytest
with:
metrics-to-turn-off: 'Machine Sensors Debug MacOS'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@v3
with:
task: get-measurement
branch: main
- name: Eco CI Energy Estimation - End Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@v3
with:
task: display-results
branch: main