UnitTesting: add option 'requirements'

This commit is contained in:
umarcor
2021-11-29 02:32:08 +01:00
parent 40a8b3ff98
commit fe0ffaa72f

View File

@@ -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: |