Skip to content

Commit

Permalink
Update the build-and-test workflow to incorporate CI for ECGDataPipel…
Browse files Browse the repository at this point in the history
…ineTemplate
  • Loading branch information
Vicbi committed Mar 9, 2024
1 parent 250f2a9 commit 70f64d1
Show file tree
Hide file tree
Showing 20 changed files with 53 additions and 14 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,48 @@ jobs:
coveragereports: PAWS.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}
buildandtestdatapipelinenotebook:
name: Build and Test ECG Data pipeline Notebook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Setup NodeJS
uses: actions/setup-node@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- name: Setup LaTex
run: |
sudo apt-get install pandoc texlive-xetex texlive-fonts-recommended texlive-plain-generic
- name: Cache Firebase Emulators
uses: actions/cache@v3
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-${{ runner.arch }}-firebase-emulators-${{ hashFiles('~/.cache/firebase/emulators/**') }}
- name: Install Firebase CLI Tools
run: npm install -g firebase-tools
- name: Install Infrastructure
run: |
python -m pip install --upgrade pip
pip install jupyterlab
- name: Install ECGDataPipelineTemplate Dependencies
run: |
pip install pandas numpy matplotlib firebase-admin requests ipywidgets pytz
- name: Set Firestore Emulator Environment Variable
run: |
echo "FIRESTORE_EMULATOR_HOST=localhost:8080" >> $GITHUB_ENV
echo "GCLOUD_PROJECT=spezidatapipelinetemplate" >> $GITHUB_ENV
- name: Run Firebase Emulator & Execute Notebook
run: |
firebase emulators:exec --import=./sample_data "jupyter nbconvert --to pdf --execute ECGDataPipelineTemplate.ipynb"
env:
CI: true
- uses: actions/upload-artifact@v4
with:
name: ECGDataPipelineTemplate.pdf
path: ECGDataPipelineTemplate.pdf

11 changes: 0 additions & 11 deletions ECGDataPipeline/requirements.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SPDX-License-Identifier: MIT

# Spezi ECG Data Pipeline

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/[YourGitHub]/SpeziECGDataAnalysisPipeline/blob/main/SpeziECGDataInteractiveTool.ipynbhttps://colab.research.google.com/github/StanfordBDHG/PediatricAppleWatchStudy/blob/main/ECGDataPipeline/SpeziECGDataIteractiveTool.ipynb)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/[YourGitHub]/SpeziECGDataAnalysisPipeline/blob/main/SpeziECGDataInteractiveTool.ipynbhttps://colab.research.google.com/github/StanfordBDHG/PediatricAppleWatchStudy/blob/main/ECGDataPipelineTemplate/ECGDataPipelineTemplate.ipynb)
<!-- [![Build Status](https://github.com/[YourGitHub]/SpeziECGDataAnalysisPipeline/actions/workflows/main.yml/badge.svg)](https://github.com/[YourGitHub]/SpeziECGDataAnalysisPipeline/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/[YourGitHub]/SpeziECGDataAnalysisPipeline/graph/badge.svg?token=[YourToken])](https://codecov.io/gh/[YourGitHub]/SpeziECGDataInteractiveTool.)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.0000000.svg)](https://doi.org/10.5281/zenodo.0000000) -->
Expand All @@ -26,11 +26,11 @@ The Spezi ECG Data Pipeline adopts a modular structure, comprising several Pytho
- `data_preparation.py`: Prepares and processes raw ECG data.
- `utils.py`: Provides utility functions for data processing.
- `visualization.py`: Contains functions for data visualization.
- `SpeziECGDataIteractiveTool.ipynb`: An interactive notebook for analyzing and reviewing ECG data.
- `SpeziECGDataIteractECGDataPipelineTemplateiveTool.ipynb`: An interactive notebook for analyzing and reviewing ECG data.

## Running the Notebook in Google Colab

You can open the `SpeziECGDataIteractiveTool.ipynb` notebook in Google Colab by clicking the "Open In Colab" badge above.
You can open the `ECGDataPipelineTemplate.ipynb` notebook in Google Colab by clicking the "Open In Colab" badge above.

### Setup Instructions in Colab

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions ECGDataPipelineTemplate/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
firebase_admin
pandas
numpy
matplotlib
ipywidgets

0 comments on commit 70f64d1

Please sign in to comment.