Skip to content

Commit

Permalink
Load cached poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rytheranderson committed Dec 2, 2023
1 parent ef13429 commit 284bfa4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ jobs:
url: https://pypi.org/p/pyfracgen
permissions:
id-token: write
if: ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.ref, "refs/tags/")
if: ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Load cached poetry install
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
- name: Check pyproject.toml
run: poetry check --no-interaction
Expand Down

0 comments on commit 284bfa4

Please sign in to comment.