File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 uses : actions/checkout@v4
2020
2121 - name : Setup Python ${{ matrix.python-version }}
22+ id : setup-python
2223 uses : actions/setup-python@v5
2324 with :
2425 python-version : ${{ matrix.python-version }}
@@ -35,15 +36,15 @@ jobs:
3536 uses : actions/cache@v4
3637 with :
3738 path : .venv
38- key : venv-${{ runner.os }}-${{ matrix. python-version }}-${{ hashFiles('poetry.lock') }}
39+ key : venv-${{ runner.os }}-${{ steps.setup- python.outputs.python -version }}-${{ hashFiles('**/ poetry.lock', 'pyproject.toml ') }}
3940 restore-keys : |
40- venv-${{ runner.os }}-${{ matrix .python-version }}-
41+ venv-${{ runner.os }}-${{ steps.setup-python.outputs .python-version }}-
4142
4243 - name : Install dependencies
4344 run : |
4445 poetry config virtualenvs.in-project true
45- poetry install --no-interaction --with dev --no-root
4646 poetry env use python${{ matrix.python-version }}
47+ poetry install --no-interaction --with dev --no-root
4748
4849 - name : Lint (ruff)
4950 run : poetry run ruff check .
You can’t perform that action at this time.
0 commit comments