Skip to content

Commit

Permalink
chore: improve github workflow caching
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Feb 19, 2024
1 parent 3b24676 commit 9abb1db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/integration_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
- uses: actions/checkout@v4
name: Checkout

- name: Save Cached Poetry
id: cached-poetry
uses: actions/cache@v4
with:
path: |
~/.cache
~/.local
key: poetry-${{ hashFiles('poetry.lock') }}

- uses: actions/setup-python@v5
name: Setup Python
with:
Expand All @@ -30,15 +39,6 @@ jobs:
- name: Install dependencies
run: poetry install --with dev

- name: Save Cached Poetry
id: cached-poetry
uses: actions/cache/save@v4
with:
path: |
~/.cache
~/.local
key: poetry-0

type-check:
name: Type Check
needs:
Expand All @@ -61,7 +61,7 @@ jobs:
path: |
~/.cache
~/.local
key: poetry-0
key: poetry-${{ hashFiles('poetry.lock') }}

- name: Type Check
run: poetry run poe typecheck
Expand All @@ -88,7 +88,7 @@ jobs:
path: |
~/.cache
~/.local
key: poetry-0
key: poetry-${{ hashFiles('poetry.lock') }}

- name: Lint
run: poetry run poe lint
Expand All @@ -104,8 +104,6 @@ jobs:
steps:
- uses: actions/checkout@v4
name: Checkout
with:
lfs: true

- uses: actions/setup-python@v5
name: Setup Python
Expand All @@ -120,7 +118,7 @@ jobs:
path: |
~/.cache
~/.local
key: poetry-0
key: poetry-${{ hashFiles('poetry.lock') }}

- name: Build
run: poetry build
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.10.6

- chore: improve github workflow caching

## Version 0.10.5

- fix: `self_workers` in `Store.__init__` -> local variable `workers`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-redux"
version = "0.10.5"
version = "0.10.6"
description = "Redux implementation for Python"
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 9abb1db

Please sign in to comment.