From 297d91c3b8e22daf32d675aab1c1ee5146623e41 Mon Sep 17 00:00:00 2001 From: jnsbck-uni Date: Thu, 21 Nov 2024 21:50:38 +0100 Subject: [PATCH] fix: test sth --- .github/workflows/update_regression_baseline.yml | 4 ++-- tests/test_regression.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/update_regression_baseline.yml b/.github/workflows/update_regression_baseline.yml index 54a3d8cb..ae382308 100644 --- a/.github/workflows/update_regression_baseline.yml +++ b/.github/workflows/update_regression_baseline.yml @@ -42,8 +42,8 @@ jobs: - name: Update baseline if: github.event.pull_request.base.ref == 'main' run: | - git config --global user.name 'GitHub Action' - git config --global user.email 'action@github.com' + git config --global user.name '${{ github.event.pull_request.user.login }}' + git config --global user.email '${{ github.event.pull_request.user.login }}@users.noreply.github.com' NEW_BASELINE=1 pytest -m regression - name: Commit and push diff --git a/tests/test_regression.py b/tests/test_regression.py index ced9d75c..511c68c4 100644 --- a/tests/test_regression.py +++ b/tests/test_regression.py @@ -110,7 +110,7 @@ def append_to_json(fpath, test_name, input_kwargs, runtimes): class compare_to_baseline: - def __init__(self, baseline_iters=3, test_iters=1): + def __init__(self, baseline_iters=1, test_iters=1): self.baseline_iters = baseline_iters self.test_iters = test_iters @@ -186,13 +186,13 @@ def build_net(num_cells, artificial=True, connect=True, connection_prob=0.0): ( # Test a single SWC cell with both solvers. pytest.param(1, False, False, 0.0, "jaxley.stone"), - pytest.param(1, False, False, 0.0, "jax.sparse"), - # Test a network of SWC cells with both solvers. - pytest.param(10, False, True, 0.1, "jaxley.stone"), - pytest.param(10, False, True, 0.1, "jax.sparse"), - # Test a larger network of smaller neurons with both solvers. - pytest.param(1000, True, True, 0.001, "jaxley.stone"), - pytest.param(1000, True, True, 0.001, "jax.sparse"), + # pytest.param(1, False, False, 0.0, "jax.sparse"), + # # Test a network of SWC cells with both solvers. + # pytest.param(10, False, True, 0.1, "jaxley.stone"), + # pytest.param(10, False, True, 0.1, "jax.sparse"), + # # Test a larger network of smaller neurons with both solvers. + # pytest.param(1000, True, True, 0.001, "jaxley.stone"), + # pytest.param(1000, True, True, 0.001, "jax.sparse"), ), ) @compare_to_baseline(baseline_iters=3)