setup CI to run linters and unit tests (#20) #1
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: check | |
on: | |
pull_request: | |
branches: ['*'] | |
push: | |
branches: ['*'] | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Static Analysis | |
uses: pre-commit/[email protected] | |
- name: cdk synth | |
uses: youyo/aws-cdk-github-actions@v2 | |
with: | |
cdk_subcommand: 'synth' | |
actions_comment: false | |
cdk_args: '--verbose' | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: pip install -r requirements.txt -r requirements-dev.txt | |
- name: Run unit tests | |
run: python -m pytest tests/ -s -v |