Lambda function for populating trash pickup holiday schedule.
This project uses sam to build. The following command can be used
sam build
The function can be ran locally using the following command
pip install -r requirements-dev.txt
PYTHONPATH=holiday python holiday/function.py
Unit tests can be ran with the following command
PYTHONPATH=holiday pytest
The code will automatically be built and deployed with a github action.
To deploy the function manually first use the aws configure
command to setup credentials for aws, then run
sam deploy
OSS scanning is done using Snyk as part of the deployment pipeline and results can be viewed on the github action logs. You can run a scan locally by running this command.
snyk monitor --file=holiday/requirements.txt -- --allow-missing
Sonar quality scans are done as part of the deployment pipeline and results can be viwed on the github action logs. Results can also be found on Sonarcloud.