Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Python flavour of the ci/cd gitlab serverless setup

License

Notifications You must be signed in to change notification settings

Zurnaz/serverless-python-gitlab-ci

Repository files navigation

Serverless Python Gitlab CI Boilerplate

Serverless backend for the website

Configuring CI/CD

You need to build the docker image if you don't want to use the default

  • check the registry tab in the project on GitLab for instructions

Requires environmental variables from IAM user created for deployments:

  • AWS_ACCESS_KEY_ID with the new user’s access key
  • AWS_SECRET_ACCESS_KEY with the new user’s access secret key
  • BASE_DOMAIN with the domain registered in AWS hosted zones

Recommendations

  • Disable committing to master and only allow changes by merging via branches

Dev Javascript (Serverless related)

Install

yarn install

Run linting and auto correct errors

yarn lint

Dev Python

Install

python3 -m venv  venv
source venv/bin/activate
pip3 install -r requirements.txt
pip3 install -r dev-requirements.txt

Lint (Tests currently not included in ci build)

pylint src
pylint tests
pylint e2e

Run unit tests

pytest tests

Run End to End tests

pytest e2e

Docker image

Docker image with python, nodesjs and serverless is required.

About

Python flavour of the ci/cd gitlab serverless setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published