From 68c882b3de96f6259b53e251471834ebb572f9c6 Mon Sep 17 00:00:00 2001 From: "Katherine D. Mlika" <74208851+katherinedm-usds@users.noreply.github.com> Date: Fri, 18 Mar 2022 14:50:03 -0400 Subject: [PATCH] updating column E label to "Identified as disadvantaged" (#1406) * updating column E label to "Identified as disadvantaged" * passing tests * adding cached poetry flow * working dir Co-authored-by: Jorge Escobar --- .github/workflows/data-checks.yml | 24 ++++++++++++------ .../data_pipeline/content/config/csv.yml | 2 +- .../data_pipeline/content/config/excel.yml | 2 +- .../snapshots/downloadable_data_expected.pkl | Bin 13040 -> 13041 bytes 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/data-checks.yml b/.github/workflows/data-checks.yml index d7f07690..f7a2e0ed 100644 --- a/.github/workflows/data-checks.yml +++ b/.github/workflows/data-checks.yml @@ -8,6 +8,9 @@ on: jobs: data-pipeline: runs-on: ubuntu-latest + defaults: + run: + working-directory: data/data-pipeline strategy: matrix: # checks all of the versions allowed in pyproject.toml @@ -20,13 +23,18 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - # installs poetry - - uses: Gr1N/setup-poetry@v4 + - name: Load cached Poetry installation + id: cached-poetry-dependencies + uses: actions/cache@v2 + with: + path: ~/.cache/pypoetry/virtualenvs + key: env-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/data-checks.yml') }} + - name: Install poetry + uses: snok/install-poetry@v1 + - name: Print Poetry settings + run: poetry show -v - name: Install dependencies - run: | - cd data/data-pipeline - poetry install + run: poetry install + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - name: Run tox - run: | - cd data/data-pipeline - poetry run tox + run: poetry run tox diff --git a/data/data-pipeline/data_pipeline/content/config/csv.yml b/data/data-pipeline/data_pipeline/content/config/csv.yml index 85532f7a..2d9764b0 100644 --- a/data/data-pipeline/data_pipeline/content/config/csv.yml +++ b/data/data-pipeline/data_pipeline/content/config/csv.yml @@ -18,7 +18,7 @@ fields: label: Total threshold criteria exceeded format: int64 - score_name: Definition M (communities) - label: Definition M (communities) + label: Identified as disadvantaged format: bool - score_name: Total population label: Total population diff --git a/data/data-pipeline/data_pipeline/content/config/excel.yml b/data/data-pipeline/data_pipeline/content/config/excel.yml index 913de7c6..e9f77ba1 100644 --- a/data/data-pipeline/data_pipeline/content/config/excel.yml +++ b/data/data-pipeline/data_pipeline/content/config/excel.yml @@ -23,7 +23,7 @@ sheets: label: Total threshold criteria exceeded format: int64 - score_name: Definition M (communities) - label: Definition M (communities) + label: Identified as disadvantaged format: bool - score_name: Total population label: Total population diff --git a/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/downloadable_data_expected.pkl b/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/downloadable_data_expected.pkl index ae1cfaf0d11a3ed5c442cfc1100900835d51cf46..edaaa2aea56d59839dd5951498a0101ec64ccc4c 100644 GIT binary patch delta 47 zcmey6`Z1NIfo1BmjVyhVGSZ$Ysd*)tX_=`h3W>!EDVfEIDP@UyC5h>&DVx_yI!gio D&8ZS^ delta 46 zcmeyE`XQC2fo1B`jVyhV(o!y|X_