Skip to content

Commit

Permalink
dflow debug mode (#88)
Browse files Browse the repository at this point in the history
* dflow debug mode

Signed-off-by: zjgemi <liuxin_zijian@163.com>

* enable dflow debug mode in UTs

Signed-off-by: zjgemi <liuxin_zijian@163.com>
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
  • Loading branch information
zjgemi and Han Wang committed Oct 13, 2022
1 parent 3f0167c commit d572eb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install mock coverage codecov
- name: Test
run: SKIP_UT_WITH_DFLOW=1 coverage run --source=./dpgen2 -m unittest && coverage report
run: SKIP_UT_WITH_DFLOW=0 DFLOW_DEBUG=1 coverage run --source=./dpgen2 -m unittest && coverage report
- run: codecov
3 changes: 3 additions & 0 deletions tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
default_image = 'dptechnology/dpgen2:latest'
default_host = None
dflow_config({})
if os.getenv('DFLOW_DEBUG'):
from dflow import config
config["mode"] = "debug"

0 comments on commit d572eb2

Please sign in to comment.