Skip to content

Commit 59778d8

Browse files
authored
Merge branch 'develop' into PhilMiller/model-performance
2 parents 7c49d7b + cb52025 commit 59778d8

File tree

6 files changed

+27
-13
lines changed

6 files changed

+27
-13
lines changed

.github/workflows/pythonapp.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,18 @@ jobs:
4141
run: |
4242
streamlit run src/app.py &
4343
- name: Cypress
44-
uses: cypress-io/github-action@v1.23.2
44+
uses: cypress-io/github-action@v1
4545
with:
4646
working-directory: e2e
4747
wait-on: 'http://localhost:8000'
4848
wait-on-timeout: 300
49-
49+
- uses: actions/upload-artifact@v1
50+
if: failure()
51+
with:
52+
name: cypress-screenshots
53+
path: e2e/cypress/screenshots
54+
- uses: actions/upload-artifact@v1
55+
if: always()
56+
with:
57+
name: cypress-videos
58+
path: e2e/cypress/videos

e2e/cypress.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"baseUrl": "http://localhost:8000"
2+
"baseUrl": "http://localhost:8000",
3+
"viewportWidth": 1200,
4+
"viewportHeight": 660
35
}

e2e/cypress/integration/tests/steppers.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ context('Increment steppers', () => {
88
it('Increment regional population', () => {
99
cy.contains('Hospitalized Admissions peaks at 300');
1010

11-
cy.get('input.st-al').eq(0)
11+
cy.get('input[type=number]').eq(0)
1212
.should('has.value', '3600000');
1313

1414
cy.get('.step-up').eq(0).click();
1515

16-
cy.get('input.st-al').eq(0)
16+
cy.get('input[type=number]').eq(0)
1717
.should('has.value', '3600001');
1818

1919
cy.contains('Hospitalized Admissions peaks at 300');
@@ -22,12 +22,12 @@ context('Increment steppers', () => {
2222
it('Increment hospital market share', () => {
2323
cy.contains('Hospitalized Admissions peaks at 300');
2424

25-
cy.get('input.st-al').eq(1)
25+
cy.get('input[type=number]').eq(1)
2626
.should('has.value', '15');
2727

2828
cy.get('.step-up').eq(1).click();
2929

30-
cy.get('input.st-al').eq(1)
30+
cy.get('input[type=number]').eq(1)
3131
.should('has.value', '15.1');
3232

3333
cy.contains('Hospitalized Admissions peaks at 302');
@@ -36,12 +36,12 @@ context('Increment steppers', () => {
3636
it('Increment doubling time', () => {
3737
cy.contains('Hospitalized Admissions peaks at 300');
3838

39-
cy.get('input.st-al').eq(3)
39+
cy.get('input[type=number]').eq(3)
4040
.should('has.value', '4');
4141

4242
cy.get('.step-up').eq(3).click();
4343

44-
cy.get('input.st-al').eq(3)
44+
cy.get('input[type=number]').eq(3)
4545
.should('has.value', '4.25');
4646

4747
cy.contains('Hospitalized Admissions peaks at 272');

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Setup file for chime
22
"""
3-
__version__ = "1.1.2"
3+
__version__ = "1.1.2" # update VERSION in constants.py
44
__author__ = "Predictive Healthcare @ Penn Medicine"
55

66
from os import path
@@ -30,7 +30,7 @@
3030
"dash",
3131
"dash_bootstrap_components",
3232
"pyyaml",
33-
"gunicorn",
33+
"gunicorn",
3434
"selenium"
3535
],
3636
classifiers=[

src/penn_chime/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
re-run their reports
99
"""
1010
CHANGE_DATE = date(year=2020, month=4, day=1)
11+
VERSION = 'v1.1.2'
1112

1213
DATE_FORMAT = "%b, %d" # see https://strftime.org
1314
DOCS_URL = "https://code-for-philly.gitbook.io/chime"

src/penn_chime/presentation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
EPSILON,
1515
FLOAT_INPUT_MIN,
1616
FLOAT_INPUT_STEP,
17+
VERSION,
1718
)
1819

1920
from .utils import dataframe_to_base64
@@ -282,8 +283,9 @@ def display_sidebar(st, d: Parameters) -> Parameters:
282283

283284
# Build in desired order
284285
st.sidebar.markdown(
285-
"""**CHIME [v1.1.2](https://github.com/CodeForPhilly/chime/releases/tag/v1.1.1) ({change_date})**""".format(
286-
change_date=CHANGE_DATE
286+
"""**CHIME [{version}](https://github.com/CodeForPhilly/chime/releases/tag/{version}) ({change_date})**""".format(
287+
change_date=CHANGE_DATE,
288+
version=VERSION,
287289
)
288290
)
289291

0 commit comments

Comments
 (0)