Skip to content

Commit c1baa61

Browse files
committed
fix(ci): github CI/CD
1 parent a7a90b7 commit c1baa61

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
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 .

0 commit comments

Comments
 (0)