Skip to content

Commit

Permalink
Use Poetry 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex3917 committed Oct 13, 2022
1 parent 30ca960 commit 64f2dfd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/project_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# In YAML, 'raw' and 'endraw' can't come at the beginning of a token or at the end of a quoted value, which is why they're in weird places. They are
# needed to escape YAML templating variables, which still allowing cookiecutter to replace the value of the repository name.

# Instructions to clear caches:
# 1) List all caches for this repo using the Github CLI: gh api -H "Accept: application/vnd.github+json" /repos/Lightmatter/django-hydra/actions/caches
# 2) Delete each cache id from the list, e.g.: gh api --method DELETE -H "Accept: application/vnd.github+json" /repos/Lightmatter/django-hydra/actions/caches/1


name: Project CI
on: pull_request

Expand All @@ -21,7 +26,7 @@ jobs:
- name: Install and configure Poetry
uses: snok/install-poetry@e3dbfd357f4751d4f582d62bc8a71e56c2a7015b # v1.3.2
with:
version: 1.2.2
version: 1.2.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand All @@ -33,15 +38,16 @@ jobs:
python-version-file: ".python-version"
cache: "poetry"

- run: poetry env use ${{ steps.setup_python.outputs.python-version }}

- name: Load cached venv if cache exists
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}


- run: poetry env use ${{ steps.setup_python.outputs.python-version }}

- name: Install dependencies if cache does not exist
run: poetry install --no-interaction --no-root

Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.repo_name}}/.github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# ref: ${{ github.event.pull_request.head.sha }}

# - name: Cache Docker layers
# uses: actions/cache@v2
# uses: actions/cache@v3
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Install and configure Poetry
uses: snok/install-poetry@e3dbfd357f4751d4f582d62bc8a71e56c2a7015b # v1.3.2
with:
version: 1.2.2
version: 1.2.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand All @@ -99,7 +99,7 @@ jobs:

- name: Load cached venv if cache exists
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down

0 comments on commit 64f2dfd

Please sign in to comment.