Skip to content

Commit c5702b4

Browse files
Adjust actions
1 parent 1dca8fd commit c5702b4

7 files changed

Lines changed: 32 additions & 75 deletions

File tree

Lines changed: 21 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# After successful versioning, this script runs various
22
# parts of the push process
3-
name: Push 2
3+
name: Push
44

55
on:
66
workflow_run:
7-
workflows: ["Push 1"]
7+
workflows: ["Update versioning"]
88
types: [completed]
99

1010
jobs:
@@ -45,12 +45,28 @@ jobs:
4545
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
4646
- name: Build datasets
4747
run: make data
48-
env:
49-
TEST_LITE: true
5048
- name: Run tests
5149
run: pytest
5250
- name: Test documentation builds
5351
run: make documentation
52+
- name: Upload CPS 2024
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: cps_2024.h5
56+
path: policyengine_us_data/storage/cps_2024.h5
57+
- name: Upload ECPS 2024
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: enhanced_cps_2024.h5
61+
path: policyengine_us_data/storage/enhanced_cps_2024.h5
62+
- name: Build Jupyter Book
63+
run: make documentation
64+
- name: Deploy documentation
65+
uses: JamesIves/github-pages-deploy-action@releases/v4
66+
with:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
BRANCH: gh-pages
69+
FOLDER: docs/_build/html
5470
publish-to-pypi:
5571
name: Publish to PyPI
5672
runs-on: ubuntu-latest
@@ -92,63 +108,4 @@ jobs:
92108
- name: Build container
93109
run: docker build . -f docker/policyengine_us_data.Dockerfile -t ghcr.io/policyengine/policyengine-us-data:latest
94110
- name: Push container
95-
run: docker push ghcr.io/policyengine/policyengine-us-data:latest
96-
publish-docs:
97-
name: Publish documentation
98-
runs-on: ubuntu-latest
99-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
100-
steps:
101-
- name: Checkout code
102-
uses: actions/checkout@v4
103-
with:
104-
fetch-depth: 0 # Fetch all history for all tags and branches
105-
- name: Set up Python
106-
uses: actions/setup-python@v5
107-
with:
108-
python-version: 3.12
109-
- name: Install package
110-
run: pip install -e ".[dev]"
111-
- name: Build Jupyter Book
112-
run: make documentation
113-
- name: Deploy documentation
114-
uses: JamesIves/github-pages-deploy-action@releases/v4
115-
with:
116-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117-
BRANCH: gh-pages
118-
FOLDER: docs/_build/html
119-
upload:
120-
name: Upload data
121-
runs-on: ubuntu-latest
122-
needs: [lint, test]
123-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
124-
steps:
125-
- name: Checkout code
126-
uses: actions/checkout@v4
127-
with:
128-
fetch-depth: 0 # Fetch all history for all tags and branches
129-
- name: Set up Python
130-
uses: actions/setup-python@v5
131-
with:
132-
python-version: 3.12
133-
- name: Install package
134-
run: pip install -e ".[dev]"
135-
- name: Download data inputs
136-
run: make download
137-
env:
138-
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
139-
- name: Build datasets
140-
run: make data
141-
- name: Upload CPS 2024
142-
uses: actions/upload-artifact@v4
143-
with:
144-
name: cps_2024.h5
145-
path: policyengine_us_data/storage/cps_2024.h5
146-
- name: Upload ECPS 2024
147-
uses: actions/upload-artifact@v4
148-
with:
149-
name: enhanced_cps_2024.h5
150-
path: policyengine_us_data/storage/enhanced_cps_2024.h5
151-
- name: Upload data
152-
run: make upload
153-
env:
154-
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
111+
run: docker push ghcr.io/policyengine/policyengine-us-data:latest
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This script must run first and complete to allow for
66
# proper versioning.
77

8-
name: Push 1
8+
name: Update versioning
99

1010
on:
1111
push:

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ copyright: "2024"
44
logo: logo.png
55

66
execute:
7-
execute_notebooks: off
7+
execute_notebooks: force
88

99
repository:
1010
url: https://github.com/policyengine/policyengine-us-data

policyengine_us_data/datasets/acs/acs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ACS_2022(ACS):
111111
time_period = 2022
112112
file_path = STORAGE_FOLDER / "acs_2022.h5"
113113
census_acs = CensusACS_2022
114-
url = "release://PolicyEngine/policyengine-us-data/release/acs_2022.h5"
114+
url = "release://PolicyEngine/policyengine-us-data/1.7.0/acs_2022.h5"
115115

116116

117117
if __name__ == "__main__":

policyengine_us_data/datasets/cps/cps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,9 @@ class CPS_2023(CPS):
620620
class CPS_2024(CPS):
621621
name = "cps_2024"
622622
label = "CPS 2024 (2022-based)"
623-
file_path = STORAGE_FOLDER / "cps_2024_v1_6_1.h5"
623+
file_path = STORAGE_FOLDER / "cps_2024.h5"
624624
time_period = 2024
625-
url = "release://policyengine/policyengine-us-data/release/cps_2024_v1_6_1.h5"
625+
url = "release://policyengine/policyengine-us-data/1.7.0/cps_2024.h5"
626626

627627

628628
class PooledCPS(Dataset):
@@ -674,14 +674,14 @@ def generate(self):
674674
class Pooled_3_Year_CPS_2023(PooledCPS):
675675
label = "CPS 2023 (3-year pooled)"
676676
name = "pooled_3_year_cps_2023"
677-
file_path = STORAGE_FOLDER / "pooled_3_year_cps_2023_v1_6_1.h5"
677+
file_path = STORAGE_FOLDER / "pooled_3_year_cps_2023.h5"
678678
input_datasets = [
679679
CPS_2021,
680680
CPS_2022,
681681
CPS_2023,
682682
]
683683
time_period = 2023
684-
url = "release://PolicyEngine/policyengine-us-data/release/pooled_3_year_cps_2023_v1_6_1.h5"
684+
url = "release://PolicyEngine/policyengine-us-data/1.7.0/pooled_3_year_cps_2023.h5"
685685

686686

687687
if __name__ == "__main__":

policyengine_us_data/datasets/cps/enhanced_cps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ class EnhancedCPS_2024(EnhancedCPS):
176176
end_year = 2024
177177
name = "enhanced_cps_2024"
178178
label = "Enhanced CPS 2024"
179-
file_path = STORAGE_FOLDER / "enhanced_cps_2024_v1_6_1.h5"
180-
url = "release://policyengine/policyengine-us-data/release/enhanced_cps_2024_v1_6_1.h5"
179+
file_path = STORAGE_FOLDER / "enhanced_cps_2024.h5"
180+
url = "release://policyengine/policyengine-us-data/1.7.0/enhanced_cps_2024.h5"
181181

182182

183183
if __name__ == "__main__":

policyengine_us_data/datasets/puf/puf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ class PUF_2021(PUF):
493493
name = "puf_2021"
494494
time_period = 2021
495495
file_path = STORAGE_FOLDER / "puf_2021.h5"
496-
url = "release://policyengine/irs-soi-puf/release/puf_2021.h5"
496+
url = "release://policyengine/irs-soi-puf/1.7.0/puf_2021.h5"
497497

498498

499499
class PUF_2024(PUF):
500500
label = "PUF 2024 (2015-based)"
501501
name = "puf_2024"
502502
time_period = 2024
503503
file_path = STORAGE_FOLDER / "puf_2024.h5"
504-
url = "release://policyengine/irs-soi-puf/release/puf_2024.h5"
504+
url = "release://policyengine/irs-soi-puf/1.7.0/puf_2024.h5"
505505

506506

507507
MEDICAL_EXPENSE_CATEGORY_BREAKDOWNS = {

0 commit comments

Comments
 (0)