Skip to content

Commit df058ba

Browse files
authored
chore(ci): adds caching when installing python dependencies (#1311)
1 parent 3fd2d5c commit df058ba

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
uses: actions/setup-python@v4
4545
with:
4646
python-version: "3.8"
47+
cache: "poetry"
4748
- name: Set release notes tag
4849
id: release_version
4950
# transform tag format `v<version` to `<version`
@@ -105,6 +106,13 @@ jobs:
105106
run: |
106107
git config user.name "Release bot"
107108
git config user.email aws-devax-open-source@amazon.com
109+
- name: Set up Python
110+
uses: actions/setup-python@v4
111+
with:
112+
python-version: "3.8"
113+
cache: "poetry"
114+
- name: Install dependencies
115+
run: make dev
108116
- name: Build docs website and API reference
109117
run: |
110118
make release-docs VERSION=${RELEASE_VERSION} ALIAS="latest"

.github/workflows/python_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
uses: actions/setup-python@v4
3737
with:
3838
python-version: ${{ matrix.python-version }}
39+
cache: "poetry"
3940
- name: Install dependencies
4041
run: make dev
4142
- name: Formatting and Linting

.github/workflows/python_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
uses: actions/setup-python@v4
2828
with:
2929
python-version: "3.8"
30+
cache: "poetry"
3031
# Maintenance: temporarily until we drop Python 3.6 and make cfn-lint a dev dependency
3132
- name: Setup Cloud Formation Linter with Latest Version
3233
uses: scottbrenner/cfn-lint-action@ee9ee62016ef62c5fd366e6be920df4b310ed353 # v2.2.4

.github/workflows/rebuild_latest_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
uses: actions/setup-python@v4
3131
with:
3232
python-version: "3.8"
33+
cache: "poetry"
3334
- name: Set release notes tag
3435
run: |
3536
RELEASE_TAG_VERSION=${{ github.event.inputs.latest_published_version }}

.github/workflows/run-e2e-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
python-version: ${{ matrix.version }}
2323
architecture: "x64"
24+
cache: "poetry"
2425
- name: Install dependencies
2526
run: make dev
2627
- name: Configure AWS credentials

0 commit comments

Comments
 (0)