Skip to content

Commit 5434602

Browse files
committed
action
1 parent 702de44 commit 5434602

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/azure-functions-deploy.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.9' # Specify the Python version
20+
python-version: '3.10' # Specify the Python version
2121

2222
- name: Create virtual environment
2323
run: python3 -m venv .azure_function_fastapi_venv
2424

2525
- name: Activate virtual environment and install dependencies
2626
run: |
27-
source .azure_function_fastapi_venv/bin/activate
27+
pushd './.'
2828
python -m pip install --upgrade pip
29-
pip install -r requirements.txt
29+
pip install -r requirements.txt --target=".python_packages/lib/site-packages"
30+
popd
3031
3132
- name: Azure Login
3233
uses: azure/login@v1
@@ -38,3 +39,5 @@ jobs:
3839
with:
3940
app-name: ${{ secrets.PROJECT_NAME }} # Replace with your Function App name
4041
package: '.' # Specify the directory to deploy, usually the current directory
42+
scm-do-build-during-deployment: true
43+
enable-oryx-build: true

0 commit comments

Comments
 (0)