Skip to content

Commit

Permalink
Amend gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 27, 2024
1 parent 38c3f55 commit 05d72ec
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
- name: Build docker image
run: make docker

- name: Run docker image
env:
POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
run: docker run policyengine-us-data:latest
- name: Build and push
uses: docker/build-push-action@v6
with:
push: false
tags: policyengine-us-data:latest
secrets: |
POLICYENGINE_US_DATA_GITHUB_TOKEN=${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ FROM python:latest
COPY . .
# Install
RUN make install
RUN make download
# Run tests
CMD ["make"]
CMD ["make", "data"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: download data test
all: data test

format:
black . -l 79
Expand Down
6 changes: 4 additions & 2 deletions docs/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

df = pd.read_csv(EnhancedCPS_2024().file_path)

household_id = df[df.filing_status__2024 == "JOINT"].person_household_id__2024.values[0]
household_id = df[
df.filing_status__2024 == "JOINT"
].person_household_id__2024.values[0]
people_in_household = df[df.person_household_id__2024 == household_id]

st.dataframe(people_in_household.T, use_container_width=True)
st.dataframe(people_in_household.T, use_container_width=True)

0 comments on commit 05d72ec

Please sign in to comment.