-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥳 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
- Loading branch information
Showing
27 changed files
with
1,507 additions
and
594 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,4 +168,5 @@ Temporary Items | |
|
||
test_data/ | ||
build/ | ||
uninstall.sh | ||
uninstall.sh | ||
scratch.py |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "*" |
Oops, something went wrong.