-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (47 loc) · 1.16 KB
/
test.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
name: Test the action locally
on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
pull_request:
branches:
- main
schedule:
# only run once a week to show the action is working and preserve as much energy as possible
# Reason being that we pull our ML model and this could have changed in the meantim
- cron: '22 4 * * 6'
workflow_dispatch:
permissions:
contents: read
actions: read
pull-requests: write
jobs:
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Initialize Energy Estimation
uses: ./
with:
task: start-measurement
- name: Wait before the next step
run: sleep 2
- name: Test measurement 1
uses: ./
with:
task: get-measurement
- name: Wait before the next step
run: sleep 2
- name: Test measurement 2
uses: ./
with:
task: get-measurement
label: "Sleep #2"
- name: Eco CI Energy Estimation
uses: ./
with:
task: display-results
pr-comment: true