Skip to content

Commit

Permalink
chore: Update Makefile to use --no-root flag in poetry install (#7)
Browse files Browse the repository at this point in the history
* chore: Update Makefile to use --no-root flag in poetry install

* chore: Update action.yml to use env variable for poetry version in cache key
  • Loading branch information
ouhammmourachid authored Aug 28, 2024
1 parent aba9783 commit d8b04c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PRE_COMMIT_CMD := $(POETRY_RUN) pre-commit

.PHONY: install
install:
poetry install
poetry install --no-root

.PHONY: update
update:
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ runs:
poetry config virtualenvs.in-project true
poetry env use python
poetry env info
echo "poetry-version=$(poetry -V | grep -oP '(?<=version )\d+\.\d+\.\d+')" >> $GITHUB_ENV
shell: bash

- name: Add Poetry to PATH
Expand All @@ -57,7 +58,7 @@ runs:
uses: actions/cache@v4
with:
path: .venv
key: pypoetry-${{inputs.python-version}}-${{inputs.poetry-version}}-${{runner.os}}-${{ hashFiles('**/poetry.lock') }}
key: pypoetry-${{inputs.python-version}}-${{env.poetry-version}}-${{runner.os}}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
pypoetry-${{inputs.python-version}}-${{inputs.poetry-version}}-${{runner.os}}-
Expand Down

0 comments on commit d8b04c4

Please sign in to comment.