diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index 1ad1d8e..e0f80bb 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -12,6 +12,38 @@ jobs: actions: read contents: read 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 + uses: ioggstream/bandit-report-artifacts@v1.7.4 + with: + project_path: src + # ignore_failure: true + + # This is optional + #- name: Security check report artifacts + # uses: actions/upload-artifact@v4 + # with: + # 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. - name: Perform Bandit Analysis uses: PyCQA/bandit-action@v1 with: diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9d8d08f..5d279b3 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 0fcc47a..9bfebaa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,6 +61,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