Skip to content

Commit 2045203

Browse files
authored
🥳 Improved health sample support, significant refactor of CLI, server 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
1 parent 69bbc5b commit 2045203

27 files changed

+1507
-594
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test Suite
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.8, 3.9]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install pipenv
28+
pipenv install --dev
29+
- name: Test with pytest
30+
run: |
31+
pipenv run pytest -v

‎.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,5 @@ Temporary Items
168168

169169
test_data/
170170
build/
171-
uninstall.sh
171+
uninstall.sh
172+
scratch.py

‎.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎Pipfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
uvicorn = "*"
8+
starlette = "*"
9+
click = "*"
10+
11+
[requires]
12+
python_version = "3.8"
13+
14+
[dev-packages]
15+
pytest = "*"
16+
heartbridge = {editable = true, path = "."}
17+
requests = "*"
18+
build = "*"
19+
twine = "*"
20+
black = "*"

0 commit comments

Comments
 (0)