mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
UnitTesting: add option 'requirements'
This commit is contained in:
9
.github/workflows/UnitTesting.yml
vendored
9
.github/workflows/UnitTesting.yml
vendored
@@ -3,6 +3,11 @@ name: Unit Testing
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
requirements:
|
||||||
|
description: 'Python dependencies to be installed through pip.'
|
||||||
|
required: false
|
||||||
|
default: '-r tests/requirements.txt'
|
||||||
|
type: string
|
||||||
TestReport:
|
TestReport:
|
||||||
description: "Generate unit test report with junitxml and upload results as an artifact."
|
description: "Generate unit test report with junitxml and upload results as an artifact."
|
||||||
required: false
|
required: false
|
||||||
@@ -36,8 +41,8 @@ jobs:
|
|||||||
|
|
||||||
- name: 🔧 Install dependencies
|
- name: 🔧 Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install -U pip
|
||||||
pip install -r tests/requirements.txt
|
python -m pip install ${{ inputs.requirements }}
|
||||||
|
|
||||||
- name: ☑ Run unit tests
|
- name: ☑ Run unit tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user