Skip to content

csit-verify-tox

csit-verify-tox #27

---
name: csit-verify-tox
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
inputs:
GERRIT_BRANCH:
description: "Branch that change is against"
required: true
type: string
GERRIT_CHANGE_ID:
description: "The ID for the change"
required: true
type: string
GERRIT_CHANGE_NUMBER:
description: "The Gerrit number"
required: true
type: string
GERRIT_CHANGE_URL:
description: "URL to the change"
required: true
type: string
GERRIT_EVENT_TYPE:
description: "Type of Gerrit event"
required: true
type: string
GERRIT_PATCHSET_NUMBER:
description: "The patch number for the change"
required: true
type: string
GERRIT_PATCHSET_REVISION:
description: "The revision sha"
required: true
type: string
GERRIT_PROJECT:
description: "Project in Gerrit"
required: true
type: string
GERRIT_REFSPEC:
description: "Gerrit refspec of change"
required: true
type: string
concurrency:
# yamllint disable-line rule:line-length
group: csit-verify-tox-${{ github.workflow }}-${{ github.event.inputs.GERRIT_BRANCH }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
cancel-in-progress: true
jobs:
csit-verify-tox:
name: "csit-verify-tox"
runs-on:
- self-hosted
- nomad
- fdio:arch=${{ matrix.executor_arch }}
- fdio:class=builder
- fdio:namespace=prod
- fdio:os=${{ matrix.os }}
strategy:
matrix:
os: [ubuntu2404]
executor_arch: [x86_64]
env:
JOB_NAME: "${{ github.job }}"
steps:
- name: Gerrit Checkout
# yamllint disable-line rule:line-length
uses: lfit/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9
with:
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }}
gerrit-project: ${{ inputs.GERRIT_PROJECT }}
gerrit-url: ${{ vars.GERRIT_URL }}
delay: "30s"
ref: refs/heads/${{ inputs.GERRIT_BRANCH }}
- name: "Retrieve GIT commit message"
# yamllint disable-line rule:line-length
uses: lfit/releng-reusable-workflows/.github/actions/git-commit-message-action@main
- name: Setup Environment
uses: fdio/csit/.github/actions/setup_executor_env@master
- name: Run Tox
run: |
source ./resources/libraries/bash/entry/tox.sh
- name: Archive Logs
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ env.JOB_NAME }}-${{ github.run_number }}
path: archives/
if-no-files-found: "ignore"