Skip to content

Commit 4c0be34

Browse files
committed
updated to latest version of eco-ci; updated readme
1 parent dab2f86 commit 4c0be34

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/examples-application-testing-bare-metal.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
submodules: 'true'
5656
path: green-metrics-tool
5757

58+
- name: Energy Estimation - Get Measurement
59+
uses: green-coding-berlin/eco-ci-energy-estimation@main
60+
with:
61+
task: get-measurement
62+
label: setup
63+
5864
- name: 'Setup, Run, and Teardown Tests'
5965
uses: green-coding-berlin/green-metrics-tool/.github/actions/gmt-pytest@dev
6066
with:
@@ -68,9 +74,10 @@ jobs:
6874
uses: green-coding-berlin/eco-ci-energy-estimation@main
6975
with:
7076
task: get-measurement
77+
label: tests
7178

7279
- name: Energy Estimation - End Measurement
7380
uses: green-coding-berlin/eco-ci-energy-estimation@main
7481
with:
75-
task: final-measurement
82+
task: display-results
7683

.github/workflows/examples-application-testing-vm.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ jobs:
5757
submodules: 'true'
5858
path: green-metrics-tool
5959

60+
- name: Energy Estimation - Get Measurement
61+
uses: green-coding-berlin/eco-ci-energy-estimation@main
62+
with:
63+
task: get-measurement
64+
label: setup
6065

6166
- name: 'Setup, Run, and Teardown Tests'
6267
uses: green-coding-berlin/green-metrics-tool/.github/actions/gmt-pytest@dev
@@ -71,8 +76,9 @@ jobs:
7176
uses: green-coding-berlin/eco-ci-energy-estimation@main
7277
with:
7378
task: get-measurement
79+
label: tests
7480

7581
- name: Energy Estimation - End Measurement
7682
uses: green-coding-berlin/eco-ci-energy-estimation@main
7783
with:
78-
task: final-measurement
84+
task: display-results

test/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ In green-metris-tool tests subfolder, make sure you first run the `green-metrics
1818

1919
Then from the `example-applications/test` directory, just run `pytest`
2020

21+
To test a single directory, run something like this:
22+
23+
`pytest smoke_test.py::test_a_directory --name <name_of_directory_to_test>`
24+
2125
## Dotfiles
2226
The smoketests will iterate over all the directories and assumes that they are working applications with usage-scenario.yml and compose.yml files that are meant to used with the green metrics tool.
2327

0 commit comments

Comments
 (0)