mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 17:44:20 -08:00
* update be staging gha * NRI dataset and initial score YAML configuration * checkpoint * adding data checks for release branch * passing tests * adding INPUT_EXTRACTED_FILE_NAME to base class * lint * columns to keep and tests * update be staging gha * checkpoint * update be staging gha * NRI dataset and initial score YAML configuration * checkpoint * adding data checks for release branch * passing tests * adding INPUT_EXTRACTED_FILE_NAME to base class * lint * columns to keep and tests * checkpoint * PR Review * renoving source url * tests * stop execution of ETL if there's a YAML schema issue * update be staging gha * adding source url as class var again * clean up * force cache bust * gha cache bust * dynamically set score vars from YAML * docsctrings * removing last updated year - optional reverse percentile * passing tests * sort order * column ordening * PR review * class level vars * Updating DatasetsConfig * fix pylint errors * moving metadata hint back to code Co-authored-by: lucasmbrown-usds <lucas.m.brown@omb.eop.gov>
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
# This runs tox in the two directories under data
|
|
name: Data Checks
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- "**/release/**"
|
|
paths:
|
|
- "data/**"
|
|
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
|
|
python-version: [3.8, 3.9]
|
|
steps:
|
|
# installs Python
|
|
# one execution of the tests per version listed above
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Print variables to help debug
|
|
uses: hmarr/debug-action@v2
|
|
- name: Load cached Poetry installation
|
|
id: cached-poetry-dependencies
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.cache/pypoetry/virtualenvs
|
|
key: env-${{ runner.os }}-${{ matrix.python-version }}-${{ 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: poetry install
|
|
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
|
- name: Run tox
|
|
run: poetry run tox
|