Add installation improvements and testing infrastructure #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the LFPAnalysis package for public use by fixing installation issues, adding a testing framework, and setting up CI/CD.
Changes
Installation Improvements
requirements.txtformatting (removed leading spaces)setup.pythat could cause installation failuressetup.pyTesting Infrastructure
mean_baseline_time,find_nearest_value,moving_average)pytest.iniCI/CD
Documentation
Testing
pip install -e .pytest tests/ -vImpact
Note
Adds GitHub Actions tests, a pytest-based test suite, packaging/installation fixes, documentation updates, and a minor TFR API adjustment.
/.github/workflows/tests.ymlrunning pytest on Python 3.8–3.10.pytest.iniand test suite undertests/(import checks and basic unit tests for key utilities).pytesttorequirements.txt.setup.py(remove external API calls, add metadata, robust README/requirements loading, python_requires, classifiers, package_data).requirements.txtformatting; include pytest.README.mdwith pip/conda install, update, and testing instructions.LFPAnalysis/lfp_preprocess_utils.py, switch TFR save object tomne.time_frequency.EpochsTFRArrayand tidy docstrings.LFPAnalysisBook/module-02-01_AdvancedPreprocessing.ipynband expand resource links in Jupyter Book modules.Written by Cursor Bugbot for commit b7ec444. This will update automatically on new commits. Configure here.