From a80e7105b70f406f13028c733f655ad026a54913 Mon Sep 17 00:00:00 2001 From: Tanjona Rabemananjara Date: Mon, 20 Feb 2023 10:05:48 +0100 Subject: [PATCH] Make running of the tests optional --- .github/workflows/python-poetry-pypi.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-poetry-pypi.yml b/.github/workflows/python-poetry-pypi.yml index 559e18e..fab3bb0 100644 --- a/.github/workflows/python-poetry-pypi.yml +++ b/.github/workflows/python-poetry-pypi.yml @@ -14,6 +14,12 @@ on: required: false description: > Extras to be installed, in poetry format (e.g. "-E extra1 extra2") + run-tests: + type: boolean + default: true + required: false + description: > + Switch on/off tests before building the package secrets: PYPI_TOKEN: required: true @@ -62,6 +68,7 @@ jobs: - name: Test run: | # run tests just before deployment + if: ${{ inputs.run-tests == true }} poe test - name: Package the distribution run: |