Changing calibration targets for net worth #236
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Workflow that runs on code changes to a pull request. | |
| name: PR code changes | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - policyengine_us_data/** | |
| - tests/** | |
| - .github/workflows/** | |
| jobs: | |
| Lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check formatting | |
| uses: "lgeiger/black-action@master" | |
| with: | |
| args: ". -l 79 --check" | |
| SmokeTestForMultipleVersions: | |
| name: Test Minimal Install & Import (${{ matrix.os }}, py${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.os }} | |
| needs: Lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| python-version: ['3.11', '3.12'] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package ONLY (no dev deps) | |
| run: python -m pip install . | |
| - name: Test basic import | |
| run: python -c "import policyengine_us_data; print('Minimal import OK')" | |
| - name: Test specific core import | |
| run: python -c "from policyengine_core.data import Dataset; print('Core import OK')" | |
| Test: | |
| runs-on: ${{ matrix.os }} | |
| needs: Lint | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| env: | |
| HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }} | |
| 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.11' | |
| - 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 }} | |
| - name: Build datasets | |
| run: make data | |
| env: | |
| TEST_LITE: true | |
| PYTHON_LOG_LEVEL: INFO | |
| - name: Run tests | |
| run: pytest | |
| - name: Test documentation builds | |
| run: make documentation |