Skip to content

Commit 71b4088

Browse files
authored
codecarbon
1 parent 462b86f commit 71b4088

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ jobs:
1818
- ubuntu
1919
config:
2020
# [Python version, tox env]
21-
- ["3.9", "lint"]
22-
- ["2.7", "py27"]
23-
- ["3.7", "py37"]
24-
- ["3.8", "py38"]
21+
- ["3.11", "lint"]
22+
# - ["2.7", "py27"]
23+
# - ["3.7", "py37"]
24+
# - ["3.8", "py38"]
2525
- ["3.9", "py39"]
2626
- ["3.10", "py310"]
27-
- ["3.9", "coverage"]
27+
- ["3.11", "coverage"]
2828

2929
runs-on: ${{ matrix.os }}-latest
3030
name: ${{ matrix.config[1] }}
3131
steps:
32+
- name: Start Measurement
33+
uses: green-coding-solutions/eco-ci-energy-estimation@v4
34+
with:
35+
task: start-measurement
3236
- uses: actions/checkout@v2
3337
- name: Set up Python
3438
uses: actions/setup-python@v2
@@ -55,3 +59,15 @@ jobs:
5559
coveralls --service=github
5660
env:
5761
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
- name: Tests measurement
63+
uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below)
64+
with:
65+
task: get-measurement
66+
label: 'pytest'
67+
continue-on-error: true
68+
69+
- name: Show Energy Results
70+
uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below)
71+
with:
72+
task: display-results
73+
continue-on-error: true

0 commit comments

Comments
 (0)