feat: Support for Security Hub #71
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: Unit Test | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
paths: | |
- 'functions/**' | |
- '.github/workflows/unit-test.yml' | |
defaults: | |
run: | |
working-directory: functions | |
jobs: | |
test: | |
name: Execute unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install pipenv | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pipenv | |
- name: Install local deps | |
run: pipenv install --dev | |
- name: Lint check | |
run: pipenv run lint:ci | |
- name: Type check | |
run: pipenv run typecheck | |
- name: Unit tests | |
run: pipenv run test |