Skip to content

Impute pregnancy (#164) #6

Impute pregnancy (#164)

Impute pregnancy (#164) #6

Workflow file for this run

# Workflow that runs on code changes to a pull request.
name: Code changes
on:
push:
branches:
- main
paths:
- policyengine_us_data/**
- tests/**
- .github/workflows/code_changes.yaml
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
uses: "lgeiger/black-action@master"
with:
args: ". -l 79 --check"
Test:
runs-on: larger-runner
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install package
run: uv pip install -e .[dev] --system
- name: Download data inputs
run: make download
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
- name: Build datasets
run: make data
- name: Run tests
run: pytest
- name: Upload data
run: make upload
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Test documentation builds
run: make documentation