From 184c094e0133eb444319a8a2ec6510cc982a941e Mon Sep 17 00:00:00 2001 From: markur <98951648+markur4@users.noreply.github.com> Date: Fri, 17 Nov 2023 20:09:29 +0100 Subject: [PATCH] test coverage --- .github/workflows/test_coverage.yml | 4 ++-- tests/.DS_Store | Bin 8196 -> 8196 bytes tests/run_tests_in_new_env.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 2247558..13485d6 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -14,8 +14,8 @@ jobs: python-version: '3.11' - name: Install requirements run: pip install -r requirements.txt - - name: Install plotastic - run: pip install git+https://github.com/markur4/plotastic.git + - name: Install plotastic (in editable mode! Otherwise 0% coverage) + run: pip install -e . - name: Install development tools run: pip install pytest pytest-cov - name: Run tests and collect coverage diff --git a/tests/.DS_Store b/tests/.DS_Store index 2a9cca981d68f04236be66cab3e8db61cd86ed2a..0eb59a1db64da138e250ca29f1c75f736b7bc493 100644 GIT binary patch delta 270 zcmZp1XmOa}FUrEez`)4BAi%(o%#hDemQ-F`kd(8ra2or>2Hwr=94s95AQkKk84M*1 zxePhTs`8V7GTV|0ax#lc3=FO@GBLBTvaxe;aBy?P2501#2bUz4lomTB7Da=2A^G_^ zNicR|QdnkcdAxv#bADb)VrE`y5m-ZJN-9uEOn7EqN`ARheraAxada4x33tj%gG_CtZy9@pPiGNm)`+&8W1o7y#@xnP#Q*cZsrkC QXWz^&@r`A(rU*MT0JLsKYybcN delta 67 zcmZp1XmOa}FUrioz`)4BAi%(o%#hDemQ!5joRqV%a2or>2Hwr=94s7+%##B}L^ppG W5CRHa*~~8Sjb-yiQ8T8A4Hp4Q78Ec5 diff --git a/tests/run_tests_in_new_env.py b/tests/run_tests_in_new_env.py index 9bbe9d6..210bb74 100644 --- a/tests/run_tests_in_new_env.py +++ b/tests/run_tests_in_new_env.py @@ -24,6 +24,9 @@ ! pip install pytest pytest-cov ipytest # %% -! pytest --cov --cov-report=xml +# !! Coverage requires editable mode +! pytest + +# # ! pytest --cov --cov-report=xml # %%