This PR adds a CI/CD pipeline using Github Actions for linting (using flake8) and building the Django app. It also implements a pre-commit approach for linting and includes a step to push the Docker image to DockerHub.
Summary of Changes
Added a Github Actions workflow file (.github/workflows/ci_cd.yml) to define the CI/CD pipeline.
Installed flake8 and added a step to run flake8 in the workflow for linting.
Added a step to build the Django app in the workflow.
Added a step to push the Docker image to DockerHub in the workflow.
Added a pre-commit hook for flake8 by creating a .pre-commit-config.yaml file.
Modified the requirements.txt file to include flake8 as a requirement.
Modified the my_site/Dockerfile to include steps for copying the .pre-commit-config.yaml file and installing pre-commit.
Please review and merge this PR to enable CI/CD for the Djangoline repository.
Fixes #6.
π Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
π‘ To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR adds a CI/CD pipeline using Github Actions for linting (using flake8) and building the Django app. It also implements a pre-commit approach for linting and includes a step to push the Docker image to DockerHub.
Summary of Changes
Please review and merge this PR to enable CI/CD for the Djangoline repository.
Fixes #6.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: