added the example for integration Feast with OpenShift, Snowflake, and AWS S3 and deploy OpenShift. #4
Workflow file for this run
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
name: Feast plan (AWS) | |
on: [pull_request] | |
jobs: | |
feast_plan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
id: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10.7" | |
architecture: x64 | |
- name: Set up AWS SDK | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-west-1 | |
# Run `feast plan` | |
- uses: actions/checkout@v2 | |
- name: Install feast | |
run: pip install "feast[aws]" | |
- name: Capture `feast plan` in a variable | |
id: feast_plan | |
env: | |
FEAST_USAGE: "False" | |
FEAST_FORCE_USAGE_UUID: None | |
IS_TEST: "True" | |
run: | | |
body=$(cd module_0/feature_repo_aws; feast plan) | |
body="${body//'%'/'%25'}" | |
body="${body//$'\n'/'%0A'}" | |
body="${body//$'\r'/'%0D'}" | |
echo "::set-output name=body::$body" | |
# Post a comment on the PR with the results of `feast plan` | |
- name: Create comment | |
uses: peter-evans/create-or-update-comment@v1 | |
if: ${{ steps.feast_plan.outputs.body }} | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
${{ steps.feast_plan.outputs.body }} |