mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
CoverageCollection: add option 'requirements'
This commit is contained in:
9
.github/workflows/CoverageCollection.yml
vendored
9
.github/workflows/CoverageCollection.yml
vendored
@@ -8,6 +8,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: '3.10'
|
default: '3.10'
|
||||||
type: string
|
type: string
|
||||||
|
requirements:
|
||||||
|
description: 'Python dependencies to be installed through pip.'
|
||||||
|
required: false
|
||||||
|
default: '-r tests/requirements.txt'
|
||||||
|
type: string
|
||||||
artifact:
|
artifact:
|
||||||
description: 'Name of the coverage artifact.'
|
description: 'Name of the coverage artifact.'
|
||||||
required: true
|
required: true
|
||||||
@@ -34,8 +39,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: Collect coverage
|
- name: Collect coverage
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
Reference in New Issue
Block a user