Skip to content

Commit 9abb1db

Browse files
committed
chore: improve github workflow caching
1 parent 3b24676 commit 9abb1db

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

.github/workflows/integration_delivery.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jobs:
1616
- uses: actions/checkout@v4
1717
name: Checkout
1818

19+
- name: Save Cached Poetry
20+
id: cached-poetry
21+
uses: actions/cache@v4
22+
with:
23+
path: |
24+
~/.cache
25+
~/.local
26+
key: poetry-${{ hashFiles('poetry.lock') }}
27+
1928
- uses: actions/setup-python@v5
2029
name: Setup Python
2130
with:
@@ -30,15 +39,6 @@ jobs:
3039
- name: Install dependencies
3140
run: poetry install --with dev
3241

33-
- name: Save Cached Poetry
34-
id: cached-poetry
35-
uses: actions/cache/save@v4
36-
with:
37-
path: |
38-
~/.cache
39-
~/.local
40-
key: poetry-0
41-
4242
type-check:
4343
name: Type Check
4444
needs:
@@ -61,7 +61,7 @@ jobs:
6161
path: |
6262
~/.cache
6363
~/.local
64-
key: poetry-0
64+
key: poetry-${{ hashFiles('poetry.lock') }}
6565

6666
- name: Type Check
6767
run: poetry run poe typecheck
@@ -88,7 +88,7 @@ jobs:
8888
path: |
8989
~/.cache
9090
~/.local
91-
key: poetry-0
91+
key: poetry-${{ hashFiles('poetry.lock') }}
9292

9393
- name: Lint
9494
run: poetry run poe lint
@@ -104,8 +104,6 @@ jobs:
104104
steps:
105105
- uses: actions/checkout@v4
106106
name: Checkout
107-
with:
108-
lfs: true
109107

110108
- uses: actions/setup-python@v5
111109
name: Setup Python
@@ -120,7 +118,7 @@ jobs:
120118
path: |
121119
~/.cache
122120
~/.local
123-
key: poetry-0
121+
key: poetry-${{ hashFiles('poetry.lock') }}
124122

125123
- name: Build
126124
run: poetry build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 0.10.6
4+
5+
- chore: improve github workflow caching
6+
37
## Version 0.10.5
48

59
- fix: `self_workers` in `Store.__init__` -> local variable `workers`

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-redux"
3-
version = "0.10.5"
3+
version = "0.10.6"
44
description = "Redux implementation for Python"
55
authors = ["Sassan Haradji <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)