Quarterly plan: Quartelyplan
Weekly project plan: weeklyplan
Project workspace on Trello: trelloplan
git clone git@github.com:yusufgbagci/proje2.git
cd proje2
python3 -m venv ~/.myrepo
source ~/.myrepo/bin/activate
This image is proof of connection between Azure Cloud Shell and Github
You can find Makefile, tests, and application scaffolding to test code locally in the Azure Cloud Shell.
-In this step files:
- A Makefile
- A Requirements.txt
- A script file
- A test file
- A hello.py file
- A test_hello.py file
Configure GitHub Actions is project on change events in GitHub.
- yml code:
name: Python application test with Github Actions
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.5
uses: actions/setup-python@v1
with:
python-version: 3.5
- name: Install dependencies
run: |
make install
- name: Lint with pylint
run: |
make lint
- name: Test with pytest
run: |
make test
When commited the python.yaml file, the build automation will be build automatically.
Updating the in the file make_predict_azure_app.sh
Before creating the Azure pipeline, it is necessary to run the stages locally as desired. For this reason, python app.py file is run by entering the same Azure account from two different pages at the same time.
Firstly, in Azure bash must python app run;
python app.py
./make_prediction.sh
This step involve setting up Azure Pipelines to deploy the Flask starter code to Azure App Services.
As a final step, we will run the website that we run locally in the cloud environment using Azure DEVOPS pipline. The benefit of this is that when a change is made to the main file automatically, you will not need to redo the whole change.
Linked Github repo for this Azure connection made with Appservice service Created a new pipline
It will now trigger CI on github actions for each commit and Azure pipeline will CI and deliver the update to webapp service (CD) via Azure Pipeline success