Compare commits

...

7 Commits

Author SHA1 Message Date
umarcor
0cf056b6fe Revert "Added 'allow_failure' option for StaticTypeCheck job."
This reverts commit 6d94f6f471.
2021-12-16 07:39:51 +01:00
Patrick Lehmann
72b869a6fc Package: support either 'build' or 'setuptools' 2021-12-16 07:16:09 +01:00
umarcor
9255fdf781 Package: update description of option 'requirements 2021-12-16 06:59:16 +01:00
umarcor
5b2cd8f077 Package: support either 'build' or 'setuptools' 2021-12-16 06:50:03 +01:00
umarcor
85644b3456 ExamplePipeline: add option 'allow_failure' to StaticTypeCheck 2021-12-11 20:03:07 +01:00
Patrick Lehmann
6ff98fbb50 Added 'allow_failure' option for StaticTypeCheck job. 2021-12-11 20:01:33 +01:00
Patrick Lehmann
6d94f6f471 Added 'allow_failure' option for StaticTypeCheck job. 2021-12-11 16:59:02 +01:00
2 changed files with 30 additions and 8 deletions

View File

@@ -31,9 +31,9 @@ on:
default: '3.10'
type: string
requirements:
description: 'Python dependencies to be installed through pip.'
description: 'Python dependencies to be installed through pip; if empty, use pyproject.toml through build.'
required: false
default: 'wheel'
default: ''
type: string
artifact:
description: 'Name of the package artifact.'
@@ -55,17 +55,38 @@ jobs:
with:
python-version: ${{ inputs.python_version }}
- name: 🔧 Install dependencies for packaging and release
run: |
python -m pip install -U pip
python -m pip install ${{ inputs.requirements }}
- name: 🐍 Update pip
run: python -m pip install -U pip
- name: 🔨 Build Python package (source distribution)
# build
- name: 🔧 [build] Install dependencies for packaging and release
if: inputs.requirements == ''
run: python -m pip install build
- name: 🔨 [build] Build Python package (source distribution)
if: inputs.requirements == ''
run: python -m build --sdist
- name: 🔨 [build] Build Python package (binary distribution - wheel)
if: inputs.requirements == ''
run: python -m build --wheel
# setuptools
- name: 🔧 [setuptools] Install dependencies for packaging and release
if: inputs.requirements != ''
run: python -m pip install ${{ inputs.requirements }}
- name: 🔨 [setuptools] Build Python package (source distribution)
if: inputs.requirements != ''
run: python setup.py sdist
- name: 🔨 Build Python package (binary distribution - wheel)
- name: 🔨 [setuptools] Build Python package (binary distribution - wheel)
if: inputs.requirements != ''
run: python setup.py bdist_wheel
- name: 📤 Upload wheel artifact
uses: actions/upload-artifact@v2
with:

View File

@@ -70,6 +70,7 @@ jobs:
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
requirements: '-r tests/requirements.txt'
report: 'htmlmypy'
allow_failure: true
PublishTestResults:
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@main