Skip to content

Commit

Permalink
fix: dump extra logs (#7)
Browse files Browse the repository at this point in the history
* fix: dump extra logs
  • Loading branch information
jpantos authored Sep 6, 2024
1 parent afd2534 commit 551ca99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/run-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ runs:
PANTOS_ETHEREUM_CONTRACTS_VERSION: ${{ inputs.ethereum-contracts-version }}
PANTOS_SERVICE_NODE_VERSION: ${{ inputs.servicenode-version }}
PANTOS_VALIDATOR_NODE_VERSION: ${{ inputs.validatornode-version }}

CI: true
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,21 @@ bandit-check:
# ACTIONS_RUNNER_DEBUG is used in github actions
.PHONY: test
test:
@if [ "$(DEBUG)" = "true" ] || [ "$(ACTIONS_RUNNER_DEBUG)" = "true" ]; then \
@if [ "$(DEBUG)" = "true" ] || [ "$(CI)" = "true" ]; then \
export DEBUG=true; \
LOG_LEVEL="--log-cli-level=debug"; \
echo "Running tests with debug output"; \
else \
LOG_LEVEL=""; \
fi; \
poetry run pytest -s -o log_cli=True $$LOG_LEVEL -n ${MAX_CONCURRENCY} tests

.PHONY: coverage
coverage:
@if [ "$(DEBUG)" = "true" ] || [ "$(ACTIONS_RUNNER_DEBUG)" = "true" ]; then \
@if [ "$(DEBUG)" = "true" ] || [ "$(CI)" = "true" ]; then \
export DEBUG=true; \
LOG_LEVEL="--log-cli-level=debug"; \
echo "Running tests with debug output"; \
else \
LOG_LEVEL=""; \
fi; \
Expand Down

0 comments on commit 551ca99

Please sign in to comment.