Skip to content

Commit d9761ef

Browse files
authored
Merge pull request #1 from yzhao062/dev
Add unit tests
2 parents 6ea7da6 + 00f5573 commit d9761ef

36 files changed

+84
-982743
lines changed

.circleci/config.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Python CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-python/ for more details
4+
# Adapted from https://github.com/NeuralEnsemble/python-neo
5+
version: 2
6+
workflows:
7+
version: 2
8+
test:
9+
jobs:
10+
- test-3.6
11+
jobs:
12+
test-3.6:
13+
docker:
14+
- image: circleci/python:3.6-stretch
15+
16+
working_directory: ~/repo
17+
18+
steps:
19+
- checkout
20+
- run: sudo chown -R circleci:circleci /usr/local/bin
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-py3-dependencies-{{ checksum "requirements_ci.txt" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-py3-dependencies-
28+
29+
- run:
30+
name: install dependencies
31+
command: |
32+
python3 -m venv venv
33+
. venv/bin/activate
34+
pip install --upgrade pip
35+
pip install -r requirements.txt
36+
pip install pytest
37+
pip install pytest-cov
38+
39+
40+
- save_cache:
41+
paths:
42+
- ./venv
43+
key: v1-py3-dependencies-{{ checksum "requirements.txt" }}
44+
45+
46+
# run tests!
47+
- run:
48+
name: run tests
49+
command: |
50+
. venv/bin/activate
51+
pytest
52+
53+
- store_artifacts:
54+
path: test-reports
55+
destination: test-reports

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
v<0.0.0>, <08/01/2020> -- Initial release.
22
v<0.0.1>, <08/03/2020> -- Initial release & minor example fix.
3+
v<0.0.2>, <08/04/2020> -- Set up autotests.

README.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Python Library for Healthcare AI (PyHealth)
1212
:alt: Documentation status
1313

1414

15+
.. image:: https://travis-ci.org/yzhao062/pyhealth.svg?branch=master
16+
:target: https://travis-ci.org/yzhao062/pyhealth
17+
:alt: Build Status
18+
19+
20+
.. image:: https://circleci.com/gh/yzhao062/PyHealth.svg?style=svg
21+
:target: https://circleci.com/gh/yzhao062/PyHealth
22+
:alt: Circle CI
23+
1524

1625
.. image:: https://img.shields.io/github/stars/yzhao062/pyhealth.svg
1726
:target: https://github.com/yzhao062/pyhealth/stargazers
@@ -40,7 +49,7 @@ Python Library for Healthcare AI (PyHealth)
4049

4150
-----
4251

43-
**Development Status**: **As of 08/02/2020, PyHealth is under active development and in its alpha stage. Please follow, star, and fork to get the latest functions**!
52+
**Development Status**: **As of 08/04/2020, PyHealth is under active development and in its alpha stage. Please follow, star, and fork to get the latest functions**!
4453

4554

4655
**PyHealth** is a comprehensive and flexible **Python library** for **healthcare AI**, designed for both **ML researchers** and **medical practitioners**.
@@ -167,15 +176,18 @@ Alternatively, you could clone and run setup.py file:
167176
* joblib
168177
* numpy>=1.13
169178
* numba>=0.35
170-
* pandas>=0.24
171-
* scipy>=0.19.1
179+
* pandas>=0.25
180+
* scipy>=0.20
172181
* scikit_learn>=0.20
173-
* torch
182+
* tqdm
183+
* torch (this should be installed manually)
184+
* xgboost (this should be installed manually)
174185
* xlrd >= 1.0.0
175186

176187
**Warning 1**\ :
177188
PyHealth has multiple neural network based models, e.g., LSTM, which are
178-
implemented in PyTorch. However, PyHealth does **NOT** install these DL libraries for you. This reduces the risk of interfering with your local copies.
189+
implemented in PyTorch. However, PyHealth does **NOT** install these DL libraries for you.
190+
This reduces the risk of interfering with your local copies.
179191
If you want to use neural-net based models, please make sure PyTorch is installed.
180192
Similarly, models depending on **xgboost**, would **NOT** enforce xgboost installation by default.
181193

pyhealth/test/data/mimic-iii-clinical-database-demo-1.4/ADMISSIONS.csv

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

pyhealth/test/data/mimic-iii-clinical-database-demo-1.4/CALLOUT.csv

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

0 commit comments

Comments
 (0)