From 2e74ab9b9081112a991d3655ed7767f2f7b6f127 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sat, 1 Jun 2024 16:45:54 +0200 Subject: [PATCH] WIP: ci: Plug in ECO-CI HACK: We have to bump the image to a version that no longer supports Python 3.6 and 3.7. Let's see... --- .github/workflows/next.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index a26c782b..118574f6 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -14,11 +14,16 @@ env: jobs: perform_tests: name: Run tests on kas code - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: + - name: Initialize Energy Estimation + uses: green-coding-solutions/eco-ci-energy-estimation@v3 + with: + task: start-measurement + - name: Check out repo uses: actions/checkout@v4 - name: Set up Python @@ -56,11 +61,28 @@ jobs: $(python3 -c 'import site; print(site.getsitepackages()[0])')/ ln -s /usr/local/lib/python${{ matrix.python-version }}/site-packages/snack.py \ $(python3 -c 'import site; print(site.getsitepackages()[0])')/ + + - name: Setup measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v3 + with: + task: get-measurement + label: 'setup' + - name: Run tests run: | scripts/checkcode.sh . TERM=xterm pytest + - name: Tests measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v3 + with: + task: get-measurement + label: 'tests' + - name: Show energy results + uses: green-coding-solutions/eco-ci-energy-estimation@v3 + with: + task: display-results + build_containers: name: Build, test and deploy container images needs: perform_tests