Skip to content

Commit b5216ab

Browse files
authored
Merge pull request #19 from PerfectThymeTech/marvinbuss/python_cache
Add Python Library Caching
2 parents 7ce30ee + 35e52e5 commit b5216ab

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/_functionAppDeployTemplate.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,20 @@ jobs:
4343
environment: ${{ inputs.environment }}
4444

4545
steps:
46+
# Check Out Repository
47+
- name: Check Out Repository
48+
id: checkout_repository
49+
uses: actions/checkout@v3
50+
4651
# Setup Python 3.10
4752
- name: Setup Python 3.10
4853
id: python_setup
4954
uses: actions/setup-python@v4
5055
with:
5156
python-version: ${{ inputs.python_version }}
52-
53-
# Check Out Repository
54-
- name: Check Out Repository
55-
id: checkout_repository
56-
uses: actions/checkout@v3
57+
cache: "pip"
58+
cache-dependency-path: |
59+
code/function/requirements.txt
5760
5861
# Install Function Dependencies
5962
- name: Resolve Function Dependencies

.github/workflows/_functionAppTestTemplate.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,21 @@ jobs:
2020
continue-on-error: false
2121

2222
steps:
23+
# Check Out Repository
24+
- name: Check Out Repository
25+
id: checkout_repository
26+
uses: actions/checkout@v3
27+
2328
# Setup Python 3.10
2429
- name: Setup Python 3.10
2530
id: python_setup
2631
uses: actions/setup-python@v4
2732
with:
2833
python-version: ${{ inputs.python_version }}
29-
30-
# Check Out Repository
31-
- name: Check Out Repository
32-
id: checkout_repository
33-
uses: actions/checkout@v3
34+
cache: "pip"
35+
cache-dependency-path: |
36+
code/function/requirements.txt
37+
requirements.txt
3438
3539
# Run Python Tests
3640
- name: Run Python Tests

code/function/getting_started.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Getting Started with Azure Functions in Python
22

3-
43
## Python Programming Model V2
54

65
The new programming model in Azure Functions Python delivers an experience that aligns with Python development principles, and subsequently with commonly used Python frameworks.

0 commit comments

Comments
 (0)