Skip to content

Scheduled - main branch #668

Scheduled - main branch

Scheduled - main branch #668

Workflow file for this run

name: Daily Test Run - Virtual Machine - Main Branch
run-name: Scheduled - main branch
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
run-tests-main:
runs-on: ubuntu-24.04
steps:
- id: check-date
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: green-coding-solutions/eco-ci-activity-checker@v1
with:
branch: 'main'
- 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@main
with:
task: start-measurement
company-uuid: "20b269ce-cd67-4788-8614-030eaf5a0b47"
project-uuid: "00000001-BCA5-451B-9E60-3A2FD07FA28D"
machine-uuid: "F6ABE057-59ED-4406-97C8-9FB61B789627"
- 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: '--categories RAPL Machine Sensors Debug CGroupV2 MacOS GPU --providers PsuEnergyAcSdiaMachineProvider'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@main
with:
task: get-measurement
branch: main
- if: ${{ github.event_name == 'workflow_dispatch' || steps.check-date.outputs.should_run == 'true'}}
name: Eco CI Energy Estimation - End Measurement
uses: green-coding-solutions/eco-ci-energy-estimation@main
with:
task: display-results
branch: main