Skip to content

Commit

Permalink
Simplify plexon2 tests (only run when dependencies are installed)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Sep 13, 2023
1 parent 99602f1 commit e73cf7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/full-test-with-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: run tests
run: |
source ${{ github.workspace }}/test_env/bin/activate
pytest -m "not sorters_external and not plexon2" --cov=./ --cov-report xml:./coverage.xml -vv -ra --durations=0 | tee report_full.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1
pytest -m "not sorters_external" --cov=./ --cov-report xml:./coverage.xml -vv -ra --durations=0 | tee report_full.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1
echo "# Timing profile of full tests" >> $GITHUB_STEP_SUMMARY
python ./.github/build_job_summary.py report_full.txt >> $GITHUB_STEP_SUMMARY
cat $GITHUB_STEP_SUMMARY
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/full-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
run: ./.github/run_tests.sh core
- name: Test extractors
if: ${{ steps.modules-changed.outputs.EXTRACTORS_CHANGED == 'true' || steps.modules-changed.outputs.CORE_CHANGED == 'true' }}
run: ./.github/run_tests.sh "extractors and not streaming_extractors and not plexon2"
run: ./.github/run_tests.sh "extractors and not streaming_extractors"
- name: Test preprocessing
if: ${{ steps.modules-changed.outputs.PREPROCESSING_CHANGED == 'true' || steps.modules-changed.outputs.CORE_CHANGED == 'true' }}
run: ./.github/run_tests.sh preprocessing
Expand Down Expand Up @@ -164,6 +164,3 @@ jobs:
- name: Test internal sorters
if: ${{ steps.modules-changed.outputs.SORTERS_INTERNAL_CHANGED == 'true' || steps.modules-changed.outputs.SORTINGCOMPONENTS_CHANGED || steps.modules-changed.outputs.CORE_CHANGED == 'true' }}
run: ./.github/run_tests.sh sorters_internal
- name: Test plexon2
if: ${{ steps.modules-changed.outputs.PLEXON2_CHANGED == 'true' }}
run: ./.github/run_tests.sh plexon2
5 changes: 1 addition & 4 deletions src/spikeinterface/extractors/tests/test_neoextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ def test_pickling(self):
pass


# We mark plexon2 tests as they require additional dependencies (wine)
# We run plexon2 tests only if we have dependencies (wine)
@pytest.mark.skipif(not has_plexon2_dependencies(), reason="Required dependencies not installed")
@pytest.mark.plexon2
class Plexon2RecordingTest(RecordingCommonTestSuite, unittest.TestCase):
ExtractorClass = Plexon2RecordingExtractor
downloads = ["plexon"]
Expand All @@ -335,7 +334,6 @@ class Plexon2RecordingTest(RecordingCommonTestSuite, unittest.TestCase):


@pytest.mark.skipif(not has_plexon2_dependencies(), reason="Required dependencies not installed")
@pytest.mark.plexon2
class Plexon2EventTest(EventCommonTestSuite, unittest.TestCase):
ExtractorClass = Plexon2EventExtractor
downloads = ["plexon"]
Expand All @@ -345,7 +343,6 @@ class Plexon2EventTest(EventCommonTestSuite, unittest.TestCase):


@pytest.mark.skipif(not has_plexon2_dependencies(), reason="Required dependencies not installed")
@pytest.mark.plexon2
class Plexon2SortingTest(SortingCommonTestSuite, unittest.TestCase):
ExtractorClass = Plexon2SortingExtractor
downloads = ["plexon"]
Expand Down

0 comments on commit e73cf7e

Please sign in to comment.