mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Package: add option 'requirements'
This commit is contained in:
9
.github/workflows/Package.yml
vendored
9
.github/workflows/Package.yml
vendored
@@ -8,6 +8,11 @@ on:
|
||||
required: false
|
||||
default: '3.10'
|
||||
type: string
|
||||
requirements:
|
||||
description: 'Python dependencies to be installed through pip.'
|
||||
required: false
|
||||
default: 'wheel'
|
||||
type: string
|
||||
artifact:
|
||||
description: 'Name of the wheel artifact.'
|
||||
required: true
|
||||
@@ -30,8 +35,8 @@ jobs:
|
||||
|
||||
- name: 🔧 Install dependencies for packaging and release
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install wheel
|
||||
python -m pip install -U pip
|
||||
python -m pip install ${{ inputs.requirements }}
|
||||
|
||||
- name: 🔨 Build Python package (source distribution)
|
||||
run: python setup.py sdist
|
||||
|
||||
Reference in New Issue
Block a user