From b943da3ccfeb3b9deeef46aea3b7429a93ef8341 Mon Sep 17 00:00:00 2001 From: Joost van Zwieten Date: Mon, 6 May 2024 15:17:16 +0200 Subject: [PATCH] DEBUG GITHUB ACTIONS --- .github/workflows/test.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4d079539c..61f2b9bfc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -104,7 +104,12 @@ jobs: python -um pip install --upgrade --upgrade-strategy eager mkl python -um devtools.gha.configure_mkl - name: Test - run: python -um coverage run -m unittest discover -b -q -t . -s tests + run: python -u -m cProfile -o stats -m unittest -b -v tests.test_solver.finitestrain:vector=False.test_minimize_cache + - name: Print profile + shell: python + run: | + import pstats + pstats.Stats('stats').sort_stats('cumulative').print_stats(200) - name: Post-process coverage run: python -um devtools.gha.coverage_report_xml - name: Upload coverage @@ -146,7 +151,7 @@ jobs: # Install Nutils from `dist` dir created in job `build-python-package`. python -um pip install "$_wheel[matrix_scipy,export_mpl]" - name: Test - run: python -um unittest discover -b -q -t . -s examples + run: python -um unittest discover -b -v -t . -s examples test-sphinx: name: Test building docs runs-on: ubuntu-latest