IO: Fix lint #96
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: Python application test with Github Actions | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
make install | |
- name: Test with pytest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
make test | |
- name: Install AWS SAM CLI | |
run: | | |
pip install aws-sam-cli | |
- name: Configure AWS Credentials | |
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-east-2 | |
- name: SAM build | |
if: success() | |
env: | |
AWS_SAM_STACK_NAME: ${{ secrets.AWS_SAM_STACK_NAME }} | |
run: | | |
make sambuild | |
- name: Lint | |
run: | | |
make lint | |
- name: SAM deploy | |
if: success() | |
env: | |
AWS_SAM_STACK_NAME: ${{ secrets.AWS_SAM_STACK_NAME }} | |
run: | | |
make samdeploy |