From fe0ffaa72f91ff82d252d2ccc27daedd5b2659ed Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 02:32:08 +0100 Subject: [PATCH] UnitTesting: add option 'requirements' --- .github/workflows/UnitTesting.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml index 72bd824..04fef85 100644 --- a/.github/workflows/UnitTesting.yml +++ b/.github/workflows/UnitTesting.yml @@ -3,6 +3,11 @@ name: Unit Testing on: workflow_call: inputs: + requirements: + description: 'Python dependencies to be installed through pip.' + required: false + default: '-r tests/requirements.txt' + type: string TestReport: description: "Generate unit test report with junitxml and upload results as an artifact." required: false @@ -36,8 +41,8 @@ jobs: - name: 🔧 Install dependencies run: | - python -m pip install --upgrade pip - pip install -r tests/requirements.txt + python -m pip install -U pip + python -m pip install ${{ inputs.requirements }} - name: ☑ Run unit tests run: |