Skip to content

Commit

Permalink
Add testing files (#139)
Browse files Browse the repository at this point in the history
* Fix channel select bugs

* Add testing files

* solve pre-commit warnings

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* extract out testing files

* Add pytest and CI config

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Set the testing files as expected for a user

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Make the testing files to pytest format

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Improve testing files

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add more testing cases

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ldr426 and pre-commit-ci[bot] authored Aug 28, 2023
1 parent 52c6f32 commit 00a75f7
Show file tree
Hide file tree
Showing 10 changed files with 667 additions and 2,968 deletions.
26 changes: 26 additions & 0 deletions .github/workflow/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/workflows/pytest.yml
name: PyTest
on: [push, pull_request, workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
pip install -r requirements-dev.txt
pip install -e .
- name: Run Coverage Pytest
run: pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion echoshader/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def echogram(

else:
if channel is None:
self.channel = self.MVBS_ds.channel.values
self.channel = self.MVBS_ds.channel.values.tolist()
else:
self.channel = channel

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 00a75f7

Please sign in to comment.