Skip to content

Commit

Permalink
chore: fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
luochen1990 committed Aug 9, 2024
1 parent c19b939 commit 9c79ef6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,16 @@ jobs:
COV_ARG="--cov=src --cov-report=term --cov-report=xml"
fi
if [ -n "$RUNNER_DEBUG" || -n "$COV_ARG" ]; then
export DEBUG=True
else
export DEBUG=False
fi
export DEBUG=$(if [ -n "$RUNNER_DEBUG" ] || [ -n "$COV_ARG" ]; then echo "True"; else echo "False"; fi)
if [ -n "$RUNNER_DEBUG" ]; then
DBG_ARG="-n0 -s"
else
DBG_ARG=""
fi
echo DBG_ARG="$DBG_ARG" COV_ARG="$COV_ARG"
echo DEBUG: $DEBUG
echo CMD: pytest $DBG_ARG $COV_ARG
pytest $DBG_ARG $COV_ARG
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 9c79ef6

Please sign in to comment.