Skip to content

Commit

Permalink
Using gmt-pytest actionally manually
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneTR committed Nov 27, 2024
1 parent 2d46887 commit ff53e9a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/examples-application-testing-vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff53e9a

Please sign in to comment.