-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
159c120
commit 1ef932e
Showing
6 changed files
with
64 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Publish docker images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout | ||
- name: Log in to the Container registry | ||
uses: docker/login-action | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.POLICYENGINE_DOCKER }} | ||
- name: Build container | ||
run: docker build -f docker/policyengine_us_data.Dockerfile -t ghcr.io/policyengine/policyengine-us-data | ||
- name: Push container | ||
run: docker push ghcr.io/policyengine/policyengine-us-data | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check formatting | ||
uses: "lgeiger/black-action@master" | ||
with: | ||
args: ". -l 79 --check" | ||
publish: | ||
runs-on: ubuntu-latest | ||
name: Publish | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout | ||
- name: Set up Python | ||
uses: actions/setup-python | ||
with: | ||
python-version: 3.12 | ||
- name: Install package | ||
run: make install | ||
- name: Build package | ||
run: make build | ||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI }} | ||
skip-existing: true | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
FROM python:latest | ||
COPY . . | ||
RUN make install | ||
RUN make download | ||
RUN make data | ||
RUN make test | ||
RUN make upload | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM python:latest | ||
COPY . . | ||
RUN make install |
This file contains 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