Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# $6: cov-threshold-total
# $7: async-tests
# $8: poetry-version
# $9: dev-requirements


COV_CONFIG_FILE=.coveragerc
Expand Down Expand Up @@ -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
Expand Down