From 1db2cb53859996d979b74c7cef11793b6aadb5c9 Mon Sep 17 00:00:00 2001 From: Max Reis <33838048+maxreis86@users.noreply.github.com> Date: Sun, 27 Nov 2022 16:51:11 -0300 Subject: [PATCH 1/5] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_fiep1.yml | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_fiep1.yml diff --git a/.github/workflows/master_fiep1.yml b/.github/workflows/master_fiep1.yml new file mode 100644 index 0000000..5fd447a --- /dev/null +++ b/.github/workflows/master_fiep1.yml @@ -0,0 +1,63 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions +# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions + +name: Build and deploy Python app to Azure Web App - fiep1 + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.7' + + - name: Create and start virtual environment + run: | + python -m venv venv + source venv/bin/activate + + - name: Install dependencies + run: pip install -r requirements.txt + + # Optional: Add step to run tests here (PyTest, Django test suites, etc.) + + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: python-app + path: | + . + !venv/ + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: python-app + path: . + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'fiep1' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B497EEE443E64474B7B537794BFA6ABF }} From 6548e596fd1f805f03804b047757faf364144b6f Mon Sep 17 00:00:00 2001 From: Max Reis <33838048+maxreis86@users.noreply.github.com> Date: Sun, 27 Nov 2022 16:59:21 -0300 Subject: [PATCH 2/5] Update requirements.txt --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index b8d699a..793707b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,5 +13,5 @@ pandas>=0.19 tpot>=0.11.0 seaborn==0.9.0 cloudpickle>=0.6.0 -scikit-learn==0.20.0 -joblib==0.14.0 \ No newline at end of file +scikit-learn +joblib==0.14.0 From b168450b999938935ffc7561aeea45610493b9df Mon Sep 17 00:00:00 2001 From: Max Reis <33838048+maxreis86@users.noreply.github.com> Date: Sun, 27 Nov 2022 17:35:58 -0300 Subject: [PATCH 3/5] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 793707b..4cedb2a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,5 +13,5 @@ pandas>=0.19 tpot>=0.11.0 seaborn==0.9.0 cloudpickle>=0.6.0 -scikit-learn +scikit-learn==0.22.0 joblib==0.14.0 From aeca1df76c8cacc8cd99f4323334738da641eb33 Mon Sep 17 00:00:00 2001 From: Max Reis <33838048+maxreis86@users.noreply.github.com> Date: Sun, 27 Nov 2022 18:19:39 -0300 Subject: [PATCH 4/5] Update requirements.txt --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4cedb2a..f868e53 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,8 +10,8 @@ numpy>=1.9.2 scipy>=0.15.1 matplotlib>=1.4.3 pandas>=0.19 -tpot>=0.11.0 +tpot==0.10.2 seaborn==0.9.0 cloudpickle>=0.6.0 -scikit-learn==0.22.0 +scikit-learn==0.20.0 joblib==0.14.0 From 071eaa0176ae4db63f6fe8fd9f87626af869e5c2 Mon Sep 17 00:00:00 2001 From: Max Reis <33838048+maxreis86@users.noreply.github.com> Date: Sun, 27 Nov 2022 18:43:22 -0300 Subject: [PATCH 5/5] Delete master_fiep1.yml --- .github/workflows/master_fiep1.yml | 63 ------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/master_fiep1.yml diff --git a/.github/workflows/master_fiep1.yml b/.github/workflows/master_fiep1.yml deleted file mode 100644 index 5fd447a..0000000 --- a/.github/workflows/master_fiep1.yml +++ /dev/null @@ -1,63 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy -# More GitHub Actions for Azure: https://github.com/Azure/actions -# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions - -name: Build and deploy Python app to Azure Web App - fiep1 - -on: - push: - branches: - - master - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Python version - uses: actions/setup-python@v1 - with: - python-version: '3.7' - - - name: Create and start virtual environment - run: | - python -m venv venv - source venv/bin/activate - - - name: Install dependencies - run: pip install -r requirements.txt - - # Optional: Add step to run tests here (PyTest, Django test suites, etc.) - - - name: Upload artifact for deployment jobs - uses: actions/upload-artifact@v2 - with: - name: python-app - path: | - . - !venv/ - - deploy: - runs-on: ubuntu-latest - needs: build - environment: - name: 'Production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v2 - with: - name: python-app - path: . - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'fiep1' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B497EEE443E64474B7B537794BFA6ABF }}