Skip to content

Commit

Permalink
packaging; test_coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
markur4 committed Nov 17, 2023
1 parent 5aa73e3 commit ad9520a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
# os.system("pip uninstall plotastic -y")

# %% [markdown]
# ## == 5. Install Development Tools ======================================
# ## == 5. Install Development Tools ===================================

# %% Check devtools
DEVELOPMENT_TOOLS = req.DEVELOPMENT_TOOLS
Expand All @@ -168,7 +168,7 @@
os.remove("_devtools.txt") # * cleanup

# %%
# ## == Pip slow? =========================================================
# ## == Pip slow? ======================================================

# %% [markdown]
# ## 6. Is `pip` slow?
Expand Down
2 changes: 1 addition & 1 deletion tests/others_test/load_dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# %% Imports

import pytest
import ipytest

import plotastic as plst
from plotastic.example_data.load_dataset import FILES
Expand All @@ -21,4 +20,5 @@ def test_load_dataset(name):
# %%

if __name__ == "__main__":
import ipytest
ipytest.run()
9 changes: 8 additions & 1 deletion tests/run_tests_in_new_env.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#
# %%
import os
import shutil
import venv

#%%
### Delete environment if present
if os.path.exists("../venv_not_e"):
shutil.rmtree("../venv_not_e")

# %%
### Create virtual environment
# !! we're inside the tests folder
Expand All @@ -14,7 +21,7 @@
### Install non editable for testing
! pip install -r requirements.txt
! pip install git+https://github.com/markur4/plotastic.git
! pip install pytest pytest-cov
! pip install pytest pytest-cov ipytest

# %%
! pytest --cov=src/plotastic --cov-report=xml
Expand Down

0 comments on commit ad9520a

Please sign in to comment.