From 5a08bec145a9ec6462643802d5619b049e45818e Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:18:33 +0200 Subject: [PATCH 01/11] Create eco-ci.yml --- .github/workflows/eco-ci.yml | 66 ++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/eco-ci.yml diff --git a/.github/workflows/eco-ci.yml b/.github/workflows/eco-ci.yml new file mode 100644 index 0000000..8ce0add --- /dev/null +++ b/.github/workflows/eco-ci.yml @@ -0,0 +1,66 @@ +--- +name: Daily Tests with Energy Measurement +run-name: Scheduled - DEV Branch +on: + schedule: + - cron: '0 0 * * *' + +permissions: + read-all + +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: start-measurement + continue-on-error: true + + - name: 'Checkout repository' + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + ref: 'dev' + submodules: 'true' + + - name: Checkout Repo Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: get-measurement + label: 'repo checkout' + continue-on-error: true + + - name: setup python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 + with: + python-version: '3.10' + cache: 'pip' + + - name: pip install + shell: bash + run: pip install -r requirements.txt + + - name: Setup Python Measurment + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: get-measurement + label: 'python setup' + continue-on-error: true + + - name: Run Tests + shell: bash + run: pytest + + - name: Tests measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: get-measurement + label: 'pytest' + continue-on-error: true + + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: display-results + continue-on-error: true From 9111e912be4e85fc22f325a65491433e6d63a493 Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:26:54 +0200 Subject: [PATCH 02/11] Update eco-ci.yml Use uv --- .github/workflows/eco-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/eco-ci.yml b/.github/workflows/eco-ci.yml index 8ce0add..4215591 100644 --- a/.github/workflows/eco-ci.yml +++ b/.github/workflows/eco-ci.yml @@ -31,15 +31,15 @@ jobs: label: 'repo checkout' continue-on-error: true - - name: setup python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 + - name: Set up uv + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 with: - python-version: '3.10' - cache: 'pip' + python-version: "3.14" + activate-environment: true + enable-cache: auto - - name: pip install - shell: bash - run: pip install -r requirements.txt + - name: Install dependencies + run: uv pip install -r requirements.txt - name: Setup Python Measurment uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 From 37cbd126d21cccbb665fec0942a6c2cedccbe5ae Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:28:16 +0200 Subject: [PATCH 03/11] Update validate.yml Replace astral-sh/setup-uv v7 to v9.0.0 --- .github/workflows/validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index bcc725a..4eb48df 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Set up uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 with: python-version: "3.14" activate-environment: true From dcebe31220d41314ecb6194ae3de745cbd9e5b22 Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:31:27 +0200 Subject: [PATCH 04/11] Fix read permission Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/eco-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eco-ci.yml b/.github/workflows/eco-ci.yml index 4215591..de21707 100644 --- a/.github/workflows/eco-ci.yml +++ b/.github/workflows/eco-ci.yml @@ -6,7 +6,7 @@ on: - cron: '0 0 * * *' permissions: - read-all + contents: read jobs: run-tests: From 40eebd367548dda453831017426bf1581697e20c Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:32:15 +0200 Subject: [PATCH 05/11] Typo Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/eco-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eco-ci.yml b/.github/workflows/eco-ci.yml index de21707..d5cb7a3 100644 --- a/.github/workflows/eco-ci.yml +++ b/.github/workflows/eco-ci.yml @@ -41,7 +41,7 @@ jobs: - name: Install dependencies run: uv pip install -r requirements.txt - - name: Setup Python Measurment + - name: Setup Python Measurement uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 with: task: get-measurement From 3ab7f06bd3dce7b941a0d988b8d373c9d9ef45dd Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:58:35 +0200 Subject: [PATCH 06/11] Update ci.yml Add Eco CI steps --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f44d0c..325f24a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,12 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: start-measurement + continue-on-error: true + - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 @@ -29,10 +35,23 @@ jobs: path: public/ retention-days: 1 + - name: Get measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: get-measurement + label: 'build' + continue-on-error: true + axe-core: needs: build runs-on: ubuntu-latest steps: + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: start-measurement + continue-on-error: true + - name: Download build artifact uses: actions/download-artifact@v8 with: @@ -60,10 +79,23 @@ jobs: if: always() run: echo "Accessibility testing completed. Check logs above for any violations." + - name: Get measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: get-measurement + label: 'axe-core' + continue-on-error: true + lighthouse: needs: build runs-on: ubuntu-latest steps: + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: start-measurement + continue-on-error: true + - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 @@ -82,3 +114,19 @@ jobs: run: bunx @lhci/cli@0.15.x autorun env: LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} + + - name: Get measurement + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: get-measurement + label: 'lighthouse' + continue-on-error: true + + eco-ci: + runs-on: ubuntu-latest + steps: + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: display-results + continue-on-error: true From 5a1fd9b5455b4ff37c5e8febbe08e0757fcf7dcd Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 17:58:58 +0200 Subject: [PATCH 07/11] Delete .github/workflows/eco-ci.yml --- .github/workflows/eco-ci.yml | 66 ------------------------------------ 1 file changed, 66 deletions(-) delete mode 100644 .github/workflows/eco-ci.yml diff --git a/.github/workflows/eco-ci.yml b/.github/workflows/eco-ci.yml deleted file mode 100644 index d5cb7a3..0000000 --- a/.github/workflows/eco-ci.yml +++ /dev/null @@ -1,66 +0,0 @@ ---- -name: Daily Tests with Energy Measurement -run-name: Scheduled - DEV Branch -on: - schedule: - - cron: '0 0 * * *' - -permissions: - contents: read - -jobs: - run-tests: - runs-on: ubuntu-latest - steps: - - name: Start Measurement - uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 - with: - task: start-measurement - continue-on-error: true - - - name: 'Checkout repository' - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - with: - ref: 'dev' - submodules: 'true' - - - name: Checkout Repo Measurement - uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 - with: - task: get-measurement - label: 'repo checkout' - continue-on-error: true - - - name: Set up uv - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 - with: - python-version: "3.14" - activate-environment: true - enable-cache: auto - - - name: Install dependencies - run: uv pip install -r requirements.txt - - - name: Setup Python Measurement - uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 - with: - task: get-measurement - label: 'python setup' - continue-on-error: true - - - name: Run Tests - shell: bash - run: pytest - - - name: Tests measurement - uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 - with: - task: get-measurement - label: 'pytest' - continue-on-error: true - - - name: Show Energy Results - uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 - with: - task: display-results - continue-on-error: true From 1eaf4a366e96d39bfc4d91263cc31c12c85bfc5b Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 18:03:59 +0200 Subject: [PATCH 08/11] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 325f24a..39a8607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,12 @@ jobs: label: 'axe-core' continue-on-error: true + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: display-results + continue-on-error: true + lighthouse: needs: build runs-on: ubuntu-latest @@ -122,6 +128,12 @@ jobs: label: 'lighthouse' continue-on-error: true + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: display-results + continue-on-error: true + eco-ci: runs-on: ubuntu-latest steps: From 3ce08be16dd51e52845daad782ac18de576ed5e2 Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 18:10:24 +0200 Subject: [PATCH 09/11] Update ci.yml --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39a8607..6ddab49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,12 @@ jobs: label: 'build' continue-on-error: true + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 + with: + task: display-results + continue-on-error: true + axe-core: needs: build runs-on: ubuntu-latest From eb5a4da0a3c3e456c72f97a584187c874a330e38 Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 18:24:55 +0200 Subject: [PATCH 10/11] Update ci.yml --- .github/workflows/ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ddab49..a168460 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,8 @@ on: pull_request: branches: [ "main" ] -permissions: {} +permissions: + pull-requests: write jobs: build: @@ -46,6 +47,7 @@ jobs: uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 with: task: display-results + pr-comment: true continue-on-error: true axe-core: @@ -96,6 +98,7 @@ jobs: uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 with: task: display-results + pr-comment: true continue-on-error: true lighthouse: @@ -138,13 +141,5 @@ jobs: uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 with: task: display-results - continue-on-error: true - - eco-ci: - runs-on: ubuntu-latest - steps: - - name: Show Energy Results - uses: green-coding-solutions/eco-ci-energy-estimation@782dd4a31bc426a6ae26a7b08d89af454b10ffc0 - with: - task: display-results + pr-comment: true continue-on-error: true From 90bf265dfa8ea618d966b814175b422e44e02c79 Mon Sep 17 00:00:00 2001 From: nicolas Trauwaen Date: Thu, 30 Jul 2026 19:01:27 +0200 Subject: [PATCH 11/11] Fix read permission Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a168460..3eb39e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: branches: [ "main" ] permissions: + contents: read pull-requests: write jobs: