Skip to content

Commit ff53e9a

Browse files
committed
Using gmt-pytest actionally manually
1 parent 2d46887 commit ff53e9a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,22 @@ jobs:
7979
# Actions checkout@v4 flakes as the repo contains non-resolving symlinks for the EE version
8080
- name: Checkout Green Metrics Tool
8181
run: |
82-
git checkout https://github.com/green-coding-solutions/green-metrics-tool
82+
git clone https://github.com/green-coding-solutions/green-metrics-tool
8383
8484
- name: Energy Estimation - Get Measurement
8585
uses: green-coding-solutions/eco-ci-energy-estimation@main
8686
with:
8787
task: get-measurement
8888
label: setup
89-
89+
90+
# we have to load the action manually, as when we link directly with "uses: ./.github/actions/gmt-pytest"
91+
# GitHub flakes as it somehow chokes on the symlinks in the general green-metrics-tool repository
9092
- name: 'Setup, Run, and Teardown Tests'
91-
uses: green-coding-solutions/green-metrics-tool/.github/actions/gmt-pytest@main
93+
uses: ./green-metrics-tool/.github/actions/gmt-pytest
9294
with:
93-
gmt-directory: './green-metrics-tool'
94-
tests-command: 'pytest ../../examples-directory/test/smoke_test.py -k "test_all_directories"'
95-
github-token: ${{ secrets.GITHUB_TOKEN }}
95+
gmt-directory: './green-metrics-tool'
96+
tests-command: 'pytest ../../examples-directory/test/smoke_test.py -k "test_all_directories"'
97+
github-token: ${{ secrets.GITHUB_TOKEN }}
9698

9799
- name: Energy Estimation - Get Measurement
98100
uses: green-coding-solutions/eco-ci-energy-estimation@main

0 commit comments

Comments
 (0)