Add capability to write signal with unique samps_per_frame
to wfdb.io.wrsamp
#397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Link repository with GitHub Actions | |
# https://docs.github.com/en/actions/learn-github-actions/introduction-to-github-actions | |
name: run-tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# Set the language, install dependencies, and run the tests | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install libsndfile | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get install -y libsndfile1 | |
- name: Run tests | |
run: uv run --extra dev pytest | |
- name: Check source code format | |
run: uv run --extra dev black --check --diff . | |
test-deb10-i386: | |
runs-on: ubuntu-latest | |
container: i386/debian:10 | |
steps: | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y --no-install-recommends \ | |
python3-matplotlib \ | |
python3-numpy \ | |
python3-pandas \ | |
python3-requests \ | |
python3-scipy \ | |
python3-soundfile \ | |
python3-pytest \ | |
git | |
# Note: "actions/checkout@v2" requires libstdc++6:amd64 to be | |
# installed in the container. To keep things simple, use | |
# "actions/checkout@v1" instead. | |
# https://github.com/actions/checkout/issues/334 | |
- uses: actions/checkout@v1 | |
- name: Run tests | |
run: | | |
pytest-3 | |
build-documentation: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r docs/requirements.txt | |
- name: Build documentation | |
run: | | |
cd docs | |
make html |