Skip to content

Commit

Permalink
WIP: ci: Plug in Eco-CI
Browse files Browse the repository at this point in the history
HACK: We have to bump the image to a version that no longer supports
Python 3.6-3.8.

Let's see...
  • Loading branch information
jan-kiszka committed Jun 1, 2024
1 parent b314af1 commit 9677805
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9677805

Please sign in to comment.