j40-cejst-2/.github/workflows/data-checks.yml
Jorge Escobar 1d399d3ca9
Tox Security Fix (#1242)
* checkpoint

* safety ignore

* update python matrix for data checks

* downloading census once
2022-02-03 17:05:51 -05:00

32 lines
897 B
YAML

# This runs tox in the two directories under data
name: Data Checks
on:
pull_request:
branches: [main] # runs on any PR against main
paths:
- "data/**"
jobs:
data-pipeline:
runs-on: ubuntu-latest
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 }}
# installs poetry
- uses: Gr1N/setup-poetry@v4
- name: Install dependencies
run: |
cd data/data-pipeline
poetry install
- name: Run tox
run: |
cd data/data-pipeline
poetry run tox