From d359ece75c8d80fa15c9ce5113372b179d4aa508 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Jun 2021 18:19:23 +0200 Subject: [PATCH] parameterize pytest execution (#53) Signed-off-by: Max Brenner --- .github/workflows/nightly.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index aaa7a5099..953e7015a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -18,6 +18,15 @@ env: on: workflow_dispatch: + inputs: + testbed: + default: 'basic-02' + description: 'Testbed to test' + required: false + marker_expression: + default: 'sanity' + description: 'Pytest marker expression that will be used to select the tests to execute' + required: false push: branches: - master @@ -113,7 +122,7 @@ jobs: needs: [ build ] steps: - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - name: install Allure CLI tool run: | @@ -151,7 +160,7 @@ jobs: - -c - | cd tests - pytest -m sanity -s -vvv --testbed=basic-02 --skip-testrail --alluredir=/tmp/allure-results + pytest -m "${{ github.event.inputs.marker_expression }}" -s -vvv --testbed="${{ github.event.inputs.testbed }}" --skip-testrail --alluredir=/tmp/allure-results ret=\$? # sleep some time to be able to download the Allure results sleep 60