X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=.github%2Fworkflows%2Fgerrit-verify.yaml;h=ca242c97e8f81af9fb68db8f6332105de66af9e1;hb=e8f821fc46b51176797f91b00b4fdc8a193c648b;hp=84fded092c7ee7663ec4431081ee7955c45039a1;hpb=47fe9378c5ac355a9bfe98df7b4776d32cfa9d82;p=releng%2Fglobal-jjb.git diff --git a/.github/workflows/gerrit-verify.yaml b/.github/workflows/gerrit-verify.yaml index 84fded09..ca242c97 100644 --- a/.github/workflows/gerrit-verify.yaml +++ b/.github/workflows/gerrit-verify.yaml @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Clear votes - uses: lfit/gerrit-review-action@v0.5 + uses: lfit/gerrit-review-action@26b447f499bf16876244384293ee1b8893e4fc04 # v0.7 with: host: ${{ vars.LFIT_GERRIT_SERVER }} username: ${{ vars.LFIT_GERRIT_SSH_USER }} @@ -63,45 +63,31 @@ jobs: - name: Allow replication run: sleep 10s - # run pre-commit tox env separately to get use of more parallel processing - pre-commit: + tox-verify: needs: prepare - runs-on: ubuntu-latest - steps: - - uses: lfit/checkout-gerrit-change-action@v0.2 - with: - gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} - delay: "0s" - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Run static analysis and format checkers - run: pipx run tox -e pre-commit - - tox: - needs: prepare - runs-on: ubuntu-latest - steps: - - uses: lfit/checkout-gerrit-change-action@v0.2 - with: - gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} - delay: "0s" - - uses: actions/setup-python@v4 - id: setup-python - with: - python-version: "3.11" - - name: Run tests - run: >- - TOX_SKIP_ENV=pre-commit pipx run tox + # yamllint disable-line rule:line-length + uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-compose-required-tox-verify.yaml@6bb945b7d6f815db25d1cde9711f1b084f81e092 + with: + GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }} + GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }} + GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }} + GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }} + GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }} + GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }} + GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }} + GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }} + GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }} + # yamllint disable-line rule:line-length + TOX_ENVS: '["ensure-documented", "jjb", "jjb-compare-xml", "license", "bashate", "pre-commit", "docs"]' vote: if: ${{ always() }} - needs: [prepare, pre-commit, tox] + needs: [prepare, tox-verify] runs-on: ubuntu-latest steps: - uses: technote-space/workflow-conclusion-action@v3 - name: Set vote - uses: lfit/gerrit-review-action@v0.5 + uses: lfit/gerrit-review-action@26b447f499bf16876244384293ee1b8893e4fc04 # v0.7 with: host: ${{ vars.LFIT_GERRIT_SERVER }} username: ${{ vars.LFIT_GERRIT_SSH_USER }}