Skip to content

Commit

Permalink
Fix workflows not reusing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jotonedev committed Sep 24, 2024
1 parent fd336da commit 24dc95e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.12
uses: actions/setup-python@v5
- name: Setup and Cache Python Poetry
uses: packetcoders/[email protected]
with:
python-version: "3.12"
allow-prereleases: false
cache: "poetry"

- name: Install dependencies
run: poetry install --sync --no-interaction
poetry-version: "1.8.3"
install-args: --all-extras

- name: Package project
run: poetry build
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Setup and Cache Python Poetry
uses: packetcoders/[email protected]
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "poetry"

- name: Install dependencies
run: poetry install --sync --no-interaction
poetry-version: "1.8.3"
install-args: --all-extras

- name: Lint with flake8
if: matrix.python-version == '3.12'
Expand Down

0 comments on commit 24dc95e

Please sign in to comment.