rename 'pyver' to 'python_version'

This commit is contained in:
umarcor
2021-11-29 02:21:36 +01:00
parent 35738eef8f
commit 2a2aa3f0c8
7 changed files with 24 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ name: Coverage Collection
on: on:
workflow_call: workflow_call:
inputs: inputs:
pyver: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.10' default: '3.10'
@@ -20,17 +20,17 @@ on:
jobs: jobs:
Coverage: Coverage:
name: 📈 Collect Coverage Data using Python ${{ inputs.pyver }} name: 📈 Collect Coverage Data using Python ${{ inputs.python_version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: 🐍 Setup Python ${{ inputs.pyver }} - name: 🐍 Setup Python ${{ inputs.python_version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ inputs.pyver }} python-version: ${{ inputs.python_version }}
- name: 🗂 Install dependencies - name: 🗂 Install dependencies
run: | run: |

View File

@@ -3,7 +3,7 @@ name: Package
on: on:
workflow_call: workflow_call:
inputs: inputs:
pyver: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.10' default: '3.10'
@@ -23,10 +23,10 @@ jobs:
- name: 📥 Checkout repository - name: 📥 Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: 🐍 Setup Python ${{ inputs.pyver }} - name: 🐍 Setup Python ${{ inputs.python_version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ inputs.pyver }} python-version: ${{ inputs.python_version }}
- name: 🔧 Install dependencies for packaging and release - name: 🔧 Install dependencies for packaging and release
run: | run: |

View File

@@ -3,7 +3,7 @@ name: Params
on: on:
workflow_call: workflow_call:
inputs: inputs:
pyver: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.10' default: '3.10'
@@ -31,7 +31,7 @@ jobs:
name = '${{ inputs.name }}' name = '${{ inputs.name }}'
params = { params = {
'package': name, 'package': name,
'pyver': '${{ inputs.pyver }}', 'python_version': '${{ inputs.python_version }}',
'artifacts': { 'artifacts': {
'coverage': f'{name}-coverage', 'coverage': f'{name}-coverage',
'typing': f'{name}-typing', 'typing': f'{name}-typing',

View File

@@ -3,7 +3,7 @@ name: Publish on PyPI
on: on:
workflow_call: workflow_call:
inputs: inputs:
pyver: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.10' default: '3.10'
@@ -30,10 +30,10 @@ jobs:
name: ${{ inputs.artifact }} name: ${{ inputs.artifact }}
path: dist/ path: dist/
- name: 🐍 Setup Python ${{ inputs.pyver }} - name: 🐍 Setup Python ${{ inputs.python_version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ inputs.pyver }} python-version: ${{ inputs.python_version }}
- name: ⚙ Install dependencies for packaging and release - name: ⚙ Install dependencies for packaging and release
run: | run: |

View File

@@ -7,7 +7,7 @@ on:
description: 'Name of the Python package.' description: 'Name of the Python package.'
required: true required: true
type: string type: string
pyver: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.10' default: '3.10'
@@ -20,17 +20,17 @@ on:
jobs: jobs:
StaticTypeCheck: StaticTypeCheck:
name: 👀 Check Static Typing using Python ${{ inputs.pyver }} name: 👀 Check Static Typing using Python ${{ inputs.python_version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: 🐍 Setup Python ${{ inputs.pyver }} - name: 🐍 Setup Python ${{ inputs.python_version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ inputs.pyver }} python-version: ${{ inputs.python_version }}
- name: 🗂 Install dependencies - name: 🗂 Install dependencies
run: | run: |

View File

@@ -3,7 +3,7 @@ name: Verify examples
on: on:
workflow_call: workflow_call:
inputs: inputs:
pyver: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.10' default: '3.10'
@@ -12,7 +12,7 @@ on:
jobs: jobs:
VerifyDocs: VerifyDocs:
name: 👍 Verify example snippets using Python ${{ inputs.pyver }} name: 👍 Verify example snippets using Python ${{ inputs.python_version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -22,7 +22,7 @@ jobs:
- name: 🐍 Setup Python - name: 🐍 Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ inputs.pyver }} python-version: ${{ inputs.python_version }}
- name: 🐍 Install dependencies - name: 🐍 Install dependencies
run: | run: |

View File

@@ -22,7 +22,7 @@ jobs:
needs: needs:
- Params - Params
with: with:
pyver: ${{ fromJson(needs.Params.outputs.params).pyver }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
secrets: secrets:
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
@@ -33,7 +33,7 @@ jobs:
- Params - Params
with: with:
package: ${{ fromJson(needs.Params.outputs.params).package }} package: ${{ fromJson(needs.Params.outputs.params).package }}
pyver: ${{ fromJson(needs.Params.outputs.params).pyver }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
Release: Release:
@@ -51,7 +51,7 @@ jobs:
- Params - Params
- Coverage - Coverage
with: with:
pyver: ${{ fromJson(needs.Params.outputs.params).pyver }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
PublishOnPyPI: PublishOnPyPI:
@@ -62,7 +62,7 @@ jobs:
- Release - Release
- Package - Package
with: with:
pyver: ${{ fromJson(needs.Params.outputs.params).pyver }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }} artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
secrets: secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
@@ -72,7 +72,7 @@ jobs:
needs: needs:
- Params - Params
with: with:
pyver: ${{ fromJson(needs.Params.outputs.params).pyver }} python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
BuildTheDocs: BuildTheDocs:
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@dev uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@dev