Skip to content

added lambda handler and some Make commands #2

added lambda handler and some Make commands

added lambda handler and some Make commands #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
services:
docker:
image: docker:19.03.12
options: --privileged
ports:
- 8000:8000
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install black flake8 pytest
- name: Lint with flake8
run: |
source venv/bin/activate
flake8 .
- name: Format with black
run: |
source venv/bin/activate
black --check .
- name: Run tests
run: |
source venv/bin/activate
pytest