Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
- name: Make sync version of library (redis_om)
run: make sync
#----------------------------------------------
Expand Down Expand Up @@ -126,6 +126,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{ matrix.pyver }}
#----------------------------------------------
Expand All @@ -145,7 +146,7 @@ jobs:
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/pyproject.toml') }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Using ${{ steps.setup-python.outputs.python-version }} because ${{ matrix.pyver }} resolves to nothing. 🤷‍♂️
  2. Using the hash of the pyproject.toml because poetry.lock got removed in Add poetry.lock to .gitignore #457.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${{ matrix.pyver }} perhaps

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... 🤔

Last time I tried 2 weeks ago, ${{ matrix.pyver }} did not work (resolved to nothing). That's why I mentioned it in the comments.

But today it worked. 🤷‍♂️

Maybe GitHub Action got update, or maybe I mistyped something...

So I fixed the code to use matrix.pyver.

#----------------------------------------------
# Make sync version of library (redis_om)
#----------------------------------------------
Expand Down