From 5a038225bc36455cc6833e7c08b5149da9ad242c Mon Sep 17 00:00:00 2001 From: bout3fiddy <11488427+bout3fiddy@users.noreply.github.com> Date: Fri, 24 Nov 2023 15:21:27 +0100 Subject: [PATCH] fix: some errors; github workflow --- .github/workflows/.pre-commit-config.yaml | 2 +- .github/workflows/unit-tests.yaml | 2 +- tests/unitary/math/test_newton_D_ref.py | 12 ------------ 3 files changed, 2 insertions(+), 14 deletions(-) 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