Skip to content

Commit

Permalink
ci: add prints for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwnvol committed Mar 15, 2024
1 parent 064f665 commit bda9d69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
python-version: ${{ matrix.config.py }}
- name: Install dmri-commit
run: pip install . --no-cache-dir --force-reinstall
- name: pip list
run: |
python -V
pip list
- name: Run test
id: run_test
working-directory: tests
Expand Down
4 changes: 3 additions & 1 deletion tests/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_commit_StickZeppelinBall(local_path):
mit.set_threads()
mit.build_operator()

mit.fit( tol_fun=1e-3, max_iter=1000, verbose=False )
mit.fit( tol_fun=1e-3, max_iter=1000, verbose=True )
mit.save_results()


Expand Down Expand Up @@ -115,6 +115,8 @@ def check_results(pickle_result, ref_pickle):

result_optimization = data[0]["optimization"]
ref_optimization = ref_data[0]["optimization"]
print(result_optimization["fit_details"])
print(ref_optimization["fit_details"])
try:
assert result_optimization["fit_details"] == ref_optimization["fit_details"]
except AssertionError:
Expand Down

0 comments on commit bda9d69

Please sign in to comment.