diff --git a/README.md b/README.md index 4357eb1..132d33f 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ jobs: with: python-version: '3.9.6' # Define your project python version - id: run-tests - uses: dima-engineer/pytest-reporter@v2.1.0 + uses: JotaFan/pytest-reporter@v1.0.0 with: cov-omit-list: tests/* cov-threshold-single: 85 diff --git a/action.yaml b/action.yaml index 6cc0a5c..7833eca 100644 --- a/action.yaml +++ b/action.yaml @@ -37,6 +37,10 @@ inputs: poetry-version: description: 'Version of poetry. Latest if not specified.' required: false + dev-requirements: + description: 'boolean if there is an extra for development requirements' + required: false + default: false outputs: output-table: # id of output @@ -62,6 +66,7 @@ runs: ${{ inputs.cov-threshold-total }} \ ${{ inputs.async-tests }} \ ${{ inputs.poetry-version }} \ + ${{ inputs.dev-requirements }} \ shell: bash - run: | echo "SHORT_SHA=`echo ${{github.event.after}} | cut -c1-7`" >> $GITHUB_ENV diff --git a/entrypoint.sh b/entrypoint.sh index 24812e4..2c24252 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,7 @@ # $6: cov-threshold-total # $7: async-tests # $8: poetry-version +# $9: dev-requirements COV_CONFIG_FILE=.coveragerc @@ -38,6 +39,9 @@ then python -m poetry config virtualenvs.create false python -m poetry install python -m poetry add $TESTING_TOOLS + if [ $9 ] then + python -m poetry install --extras 'dev' + fi python -m poetry shell elif [ -f "./Pipfile" ] && [ -f "./Pipfile.lock" ]; then