Skip to content

Commit

Permalink
Merge pull request #133 from ImperialCollegeLondon/fix-poetry-caching
Browse files Browse the repository at this point in the history
CI: Fix `poetry` caching
  • Loading branch information
alexdewar authored Oct 16, 2024
2 parents 5f09263 + 21cdd77 commit 807bd61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions {{ cookiecutter.project_slug }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
steps:
- uses: actions/checkout@v4

{%- if cookiecutter.packaging == "poetry" %}
- name: Install poetry
run: pipx install poetry
{%- endif %}

- uses: actions/setup-python@v5
with:
python-version: ${{ "{{" }}matrix.python-version{{ "}}" }}
cache: {% if cookiecutter.packaging == "poetry" %}poetry{% else %}pip{% endif %}

{%- if cookiecutter.packaging == "poetry" %}
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.8.3

- name: Install dependencies
run: poetry install

Expand Down

0 comments on commit 807bd61

Please sign in to comment.