diff --git a/.github/workflows/data_tests.yml b/.github/workflows/data_tests.yml index 17cb45f5..502f9432 100644 --- a/.github/workflows/data_tests.yml +++ b/.github/workflows/data_tests.yml @@ -7,10 +7,22 @@ on: jobs: measure-energy: runs-on: ubuntu-latest - name: Run power usage check + name: A job to measure energy steps: - - run: sar -u 1 240 -o test.txt - - run: cat test.txt + - name: Hello world action step + id: hello + uses: koenhagen/measure-energy-action@v1.0 + with: + what-to-test: sleep 60 + # Use the output from the `hello` step + - name: Get the output time + run: echo "The time was ${{ steps.hello.outputs.time }}" + # measure-energy: + # runs-on: ubuntu-latest + # name: Run power usage check + # steps: + # - run: sar -u 1 240 -o test.txt + # - run: cat test.txt test: runs-on: ubuntu-latest strategy: