From ff53e9a4ecc22cefd2d460c3ed2160944eff7c36 Mon Sep 17 00:00:00 2001 From: Arne Tarara Date: Wed, 27 Nov 2024 10:40:33 +0100 Subject: [PATCH] Using gmt-pytest actionally manually --- .../workflows/examples-application-testing-vm.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/examples-application-testing-vm.yml b/.github/workflows/examples-application-testing-vm.yml index 5849e9c..2725b04 100644 --- a/.github/workflows/examples-application-testing-vm.yml +++ b/.github/workflows/examples-application-testing-vm.yml @@ -79,20 +79,22 @@ jobs: # Actions checkout@v4 flakes as the repo contains non-resolving symlinks for the EE version - name: Checkout Green Metrics Tool run: | - git checkout https://github.com/green-coding-solutions/green-metrics-tool + git clone https://github.com/green-coding-solutions/green-metrics-tool - name: Energy Estimation - Get Measurement uses: green-coding-solutions/eco-ci-energy-estimation@main with: task: get-measurement label: setup - + + # we have to load the action manually, as when we link directly with "uses: ./.github/actions/gmt-pytest" + # GitHub flakes as it somehow chokes on the symlinks in the general green-metrics-tool repository - name: 'Setup, Run, and Teardown Tests' - uses: green-coding-solutions/green-metrics-tool/.github/actions/gmt-pytest@main + uses: ./green-metrics-tool/.github/actions/gmt-pytest with: - gmt-directory: './green-metrics-tool' - tests-command: 'pytest ../../examples-directory/test/smoke_test.py -k "test_all_directories"' - github-token: ${{ secrets.GITHUB_TOKEN }} + gmt-directory: './green-metrics-tool' + tests-command: 'pytest ../../examples-directory/test/smoke_test.py -k "test_all_directories"' + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Energy Estimation - Get Measurement uses: green-coding-solutions/eco-ci-energy-estimation@main