diff --git a/.github/workflows/.pre-commit-config.yaml b/.github/workflows/.pre-commit-config.yaml index 81bd81e9..3c39b1a2 100644 --- a/.github/workflows/.pre-commit-config.yaml +++ b/.github/workflows/.pre-commit-config.yaml @@ -1,6 +1,6 @@ name: pre-commit -on: [pull_request, push] +on: [push] jobs: pre-commit: diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index fefed558..d02b9553 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -1,6 +1,6 @@ name: unit-tests-boa -on: ["push", "pull_request"] +on: [push] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/tests/unitary/math/test_newton_D_ref.py b/tests/unitary/math/test_newton_D_ref.py index 77ebc9d5..5074621a 100644 --- a/tests/unitary/math/test_newton_D_ref.py +++ b/tests/unitary/math/test_newton_D_ref.py @@ -168,12 +168,6 @@ def _test_newton_D( try: result_contract = math_optimized.newton_D(A, gamma, X, K0) except BoaError: - case = ( - "{" - f"'ANN': {A}, 'D': {D}, 'xD': {xD}, 'yD': {yD}, 'GAMMA': {gamma}, 'j': {j}, 'btcScalePrice': {btcScalePrice}, 'ethScalePrice': {ethScalePrice}, 'mid_fee': {mid_fee}, 'out_fee': {out_fee}, 'fee_gamma': {fee_gamma}" - "}" - ) - print("broken at:", case) raise try: @@ -181,10 +175,4 @@ def _test_newton_D( 10000, result_sim / 1e12 ) except AssertionError: - case = ( - "{" - f"'ANN': {A}, 'D': {D}, 'xD': {xD}, 'yD': {yD}, 'GAMMA': {gamma}, 'j': {j}, 'btcScalePrice': {btcScalePrice}, 'ethScalePrice': {ethScalePrice}, 'mid_fee': {mid_fee}, 'out_fee': {out_fee}, 'fee_gamma': {fee_gamma}" - "},\n" - ) - print("broken at:", case) raise