diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index 06708054..38332d27 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -7,6 +7,12 @@ jobs: runs-on: ubuntu-latest steps: + + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: start-measurement + - uses: actions/checkout@v4 - name: Security check - Bandit @@ -22,3 +28,15 @@ jobs: # name: Security report # path: output/security_report.txt + - name: Tests measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: get-measurement + label: 'pytest' + # continue-on-error: true # recommended setting for production. See notes below. + + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: display-results + # continue-on-error: true # recommended setting for production. See notes below. \ No newline at end of file diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9d8d08f4..5d279b31 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -9,6 +9,11 @@ jobs: python-version: [3.11] steps: + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: start-measurement + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -28,3 +33,16 @@ jobs: - name: run black run: black src/ --check --diff + + - name: Tests measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: get-measurement + label: 'pytest' + # continue-on-error: true # recommended setting for production. See notes below. + + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: display-results + # continue-on-error: true # recommended setting for production. See notes below. \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 61378643..f541c9ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,9 +24,9 @@ jobs: - python: "3.11" plone: "52" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache eggs - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: eggs key: ${{ runner.OS }}-build-python${{ matrix.python }}-${{ matrix.plone }} @@ -59,6 +59,19 @@ jobs: COVERALLS_FLAG_NAME: py${{ matrix.python }}-plone${{ matrix.plone }}-tz${{ matrix.tz }} COVERALLS_PARALLEL: true + - name: Tests measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: get-measurement + label: 'pytest' + # continue-on-error: true # recommended setting for production. See notes below. + + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@v4 # use hash or @vX here (See note below) + with: + task: display-results + # continue-on-error: true # recommended setting for production. See notes below. + coveralls_finish: needs: build runs-on: ubuntu-latest