Skip to content

Version Pin Workflows and lint with newest version of Black #197

Version Pin Workflows and lint with newest version of Black

Version Pin Workflows and lint with newest version of Black #197

Workflow file for this run

# This workflow will install Python dependencies, run tests, run linting, and test building docs
name: Testing
on:
pull_request:
branches:
- main
workflow_dispatch: # For on demand runs
schedule:
- cron: 0 0 * * * # Scheduled run every day at midnight
jobs:
build:
runs-on: ubuntu-20.04
container:
image: public.ecr.aws/w5r9l1c8/dev-swsoc-docker-lambda-base:latest
steps:
- uses: actions/checkout@v3
# Set up Python 3.10 to match the version of Python used in AWS Lambda
- name: Install dependencies
run: |
python -m pip install -r requirements.txt --upgrade
- name: Run tests
run: |
pytest -s lambda_function/tests --cov=lambda_function/src --cov-report=html --log-cli-level=INFO