Skip to content

Commit

Permalink
🥳 Improved health sample support, significant refactor of CLI, server…
Browse files Browse the repository at this point in the history
… and parsing code (#3)

* Adds support for any health sample data type Shortcuts exposes, with additional support for a handful of types and dataclass definitions to easily extend to more types in the future

* Switched to Starlette+Uvicorn for handling HTTP requests from Shortcuts, decoupled parsing logic from CLI/server logic

* Switched to Click for defining the CLI

* Increased testing coverage for supported health sample data types
  • Loading branch information
mm committed Apr 17, 2021
1 parent 69bbc5b commit 2045203
Show file tree
Hide file tree
Showing 27 changed files with 1,507 additions and 594 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-package.yml
@@ -0,0 +1,31 @@
name: Test Suite

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install pipenv
pipenv install --dev
- name: Test with pytest
run: |
pipenv run pytest -v
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -168,4 +168,5 @@ Temporary Items

test_data/
build/
uninstall.sh
uninstall.sh
scratch.py
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

20 changes: 20 additions & 0 deletions Pipfile
@@ -0,0 +1,20 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
uvicorn = "*"
starlette = "*"
click = "*"

[requires]
python_version = "3.8"

[dev-packages]
pytest = "*"
heartbridge = {editable = true, path = "."}
requests = "*"
build = "*"
twine = "*"
black = "*"

0 comments on commit 2045203

Please sign in to comment.