Skip to content

Scheduled - main branch #230

Scheduled - main branch

Scheduled - main branch #230

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-latest
permissions:
packages: write
contents: read
steps:
- id: check-date
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: green-coding-berlin/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@v3
with:
ref: 'main'
submodules: 'true'
- name: Eco CI Energy Estimation - Initialize
uses: green-coding-berlin/eco-ci-energy-estimation@701b5f2f4ba601be587823cd0786f07cb6ae2ee6
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: '--categories RAPL Machine Sensors Debug CGroupV2 MacOS --providers CpuFrequencySysfsCoreProvider'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Eco CI Energy Estimation - Get Measurement
uses: green-coding-berlin/eco-ci-energy-estimation@701b5f2f4ba601be587823cd0786f07cb6ae2ee6
with:
task: get-measurement
branch: main
- name: Eco CI Energy Estimation - End Measurement
uses: green-coding-berlin/eco-ci-energy-estimation@701b5f2f4ba601be587823cd0786f07cb6ae2ee6
with:
task: display-results
branch: main