Skip to content

Commit 792a7e6

Browse files
committed
Only run library tests on ubuntu
1 parent 4d20786 commit 792a7e6

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.github/workflows/full_tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ jobs:
3131
pip install .[test]
3232
- name: Pytest
3333
run: |
34-
pytest -v
34+
pytest -m "not library" -v
35+
- name: Pytest library tests
36+
if: ${{ matrix.os == 'ubuntu-latest' }}
37+
run: |
38+
pytest -m library -v

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ docs = [
5858
"pandas",
5959
]
6060

61+
[tool.pytest.ini_options]
62+
markers = [
63+
"library",
64+
]
65+
6166
[tool.coverage.run]
6267
omit = [
6368
"tests/*",

tests/test_library.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@ def test_available_tags():
8282
assert len(tag) > 0
8383

8484

85+
@pytest.mark.library
8586
def test_list_manufacturers():
8687
manufacturers = list_manufacturers()
8788
assert isinstance(manufacturers, list)
8889
assert "neuronexus" in manufacturers
8990
assert "imec" in manufacturers
9091

9192

93+
@pytest.mark.library
9294
def test_list_probes():
9395
manufacturers = list_all_probes()
9496
for manufacturer in manufacturers:

tests/test_plotting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def test_plot_probegroup():
3939
plot_probegroup(probegroup, same_axes=False)
4040

4141
# remove when plot_probe_group has been removed
42-
plot_probe_group(probegroup)
42+
with pytest.warns(DeprecationWarning):
43+
plot_probe_group(probegroup)
4344

4445
# 3d
4546
probegroup_3d = ProbeGroup()

0 commit comments

Comments
 (0)