From 40a8b3ff98cb50f7d556c8f827f6b419c691dce2 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 02:30:55 +0100 Subject: [PATCH] StaticTypeCheck: add option 'requirements' --- .github/workflows/StaticTypeCheck.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/StaticTypeCheck.yml b/.github/workflows/StaticTypeCheck.yml index 170da67..6ec6d02 100644 --- a/.github/workflows/StaticTypeCheck.yml +++ b/.github/workflows/StaticTypeCheck.yml @@ -12,6 +12,11 @@ on: required: false default: '3.10' type: string + requirements: + description: 'Python dependencies to be installed through pip.' + required: false + default: '-r tests/requirements.txt' + type: string artifact: description: 'Name of the coverage artifact.' required: true @@ -34,14 +39,12 @@ 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: Check Static Typing continue-on-error: true - run: | - pwd - mypy --html-report htmlmypy -m ${{ inputs.package }} + run: mypy --html-report htmlmypy -m ${{ inputs.package }} - name: 📤 Upload 'Static Typing Report' artifact continue-on-error: true