From 54346026d6ca9d349b132d1d1bc2d468c4458d67 Mon Sep 17 00:00:00 2001 From: Mostafa Kamal Date: Sun, 19 May 2024 03:10:53 +0600 Subject: [PATCH] action --- .github/workflows/azure-functions-deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/azure-functions-deploy.yml b/.github/workflows/azure-functions-deploy.yml index 3392bb7..b4c0181 100644 --- a/.github/workflows/azure-functions-deploy.yml +++ b/.github/workflows/azure-functions-deploy.yml @@ -17,16 +17,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' # Specify the Python version + python-version: '3.10' # Specify the Python version - name: Create virtual environment run: python3 -m venv .azure_function_fastapi_venv - name: Activate virtual environment and install dependencies run: | - source .azure_function_fastapi_venv/bin/activate + pushd './.' python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r requirements.txt --target=".python_packages/lib/site-packages" + popd - name: Azure Login uses: azure/login@v1 @@ -38,3 +39,5 @@ jobs: with: app-name: ${{ secrets.PROJECT_NAME }} # Replace with your Function App name package: '.' # Specify the directory to deploy, usually the current directory + scm-do-build-during-deployment: true + enable-oryx-build: true