-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add GitHub action workflow #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the workflow is failing with the error TypeError: type of argument db_name must be str; got NoneType instead
Is this waiting for a dependent PR?
schedule: | ||
# “At 00:00 on Sunday.” | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted in: c7bb4b9
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }} | ||
|
||
- name: Deploy using CDK | ||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider invoking the make targets here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but that makes it a bit trickier to control the exit codes. Chaining with && \
instead of newlines would do it
cdklocal deploy KinesisFirehoseRedshiftStack2 --require-approval never | ||
|
||
- name: List the resources | ||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g., make list_resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: d590f14
awslocal redshift describe-clusters | ||
|
||
- name: Run pytests | ||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in: 50721fc
88aa04b
to
6b5bb4f
Compare
8dd4c6a
to
d590f14
Compare
…ecking in .env file
140e98c
to
819ef2f
Compare
819ef2f
to
5f9c4da
Compare
Even if this exposes secrets and config variables, since they should only be mock variables used for local testing it is not a security risk. For production always use a github actions environment with secrets and variables.
Add a GitHub action workflow, that installs required dependencies, starts a Localstack container, deploys the infrastructure and runs the pytest