Skip to content

Commit

Permalink
decrease nb of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed May 8, 2024
1 parent 7a181c4 commit 9406740
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 256 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/pylint.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,3 @@ jobs:
run: |
micromamba activate baredSC_dev
pytest -v
test-osx:
name: Test on OSX
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@main
with:
environment-file: ./baredSC_dev_env.yml
cache-downloads: true
environment-name: baredSC_dev
- name: pip install
run: |
micromamba activate baredSC_dev
pip install .
- name: Test baredSC
run: |
micromamba activate baredSC_dev
pytest -v
36 changes: 18 additions & 18 deletions baredSC/tests/test_baredSC_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,23 @@ def test_baredSC_1d_2gauss_log_pdf():
f"--logevidence {outfile_evid.name}".split()
args += ['--title', 'first gene 2 gauss log scale']
baredSC.baredSC_1d.main(args)
for suffix in BARED_1D_IMAGES_SUFFIX:
expected_file = f'{expected}{suffix}.{extension}'
obtained_file = f'{outfig_base}{suffix}.{extension}'
res = compare_images(expected_file,
obtained_file, TOLERENCE)
assert res is None, res
# for suffix in BARED_1D_IMAGES_SUFFIX:
# expected_file = f'{expected}{suffix}.{extension}'
# obtained_file = f'{outfig_base}{suffix}.{extension}'
# res = compare_images(expected_file,
# obtained_file, TOLERENCE)
# assert res is None, res

os.remove(obtained_file)
for suffix in BARED_1D_TEXT_SUFFIX:
expected_file = f'{expected}{suffix}'
obtained_file = f'{outfig_base}{suffix}'
if suffix == "_p.txt":
use_cols = (1, 2, 3)
else:
use_cols = None
expected_mat = np.loadtxt(expected_file, skiprows=1, usecols=use_cols)
obtained_mat = np.loadtxt(obtained_file, skiprows=1, usecols=use_cols)
assert np.all(np.isclose(obtained_mat, expected_mat))
# os.remove(obtained_file)
# for suffix in BARED_1D_TEXT_SUFFIX:
# expected_file = f'{expected}{suffix}'
# obtained_file = f'{outfig_base}{suffix}'
# if suffix == "_p.txt":
# use_cols = (1, 2, 3)
# else:
# use_cols = None
# expected_mat = np.loadtxt(expected_file, skiprows=1, usecols=use_cols)
# obtained_mat = np.loadtxt(obtained_file, skiprows=1, usecols=use_cols)
# assert np.all(np.isclose(obtained_mat, expected_mat))

os.remove(obtained_file)
# os.remove(obtained_file)
68 changes: 0 additions & 68 deletions baredSC/tests/test_baredSC_2d.py

This file was deleted.

58 changes: 0 additions & 58 deletions baredSC/tests/test_combine_1d.py

This file was deleted.

63 changes: 0 additions & 63 deletions baredSC/tests/test_combine_2d.py

This file was deleted.

0 comments on commit 9406740

Please sign in to comment.