Skip to content

Commit 9d407b6

Browse files
committed
💚 ci: try to fix ci cache
1 parent a4c87c7 commit 9d407b6

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/lint-and-fmt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
id: poetry-cache
3333
with:
3434
path: |
35-
**/.venv
35+
.venv
3636
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-poetry-${{ hashFiles('poetry.lock') }}
3737

3838
- name: Install dependencies
3939
if: steps.poetry-cache.outputs.cache-hit != 'true'
4040
run: |
41-
just install
41+
just ci-install
4242
4343
- name: lint
4444
run: |

.github/workflows/unit-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
id: poetry-cache
3232
with:
3333
path: |
34-
**/.venv
34+
.venv
3535
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-poetry-${{ hashFiles('poetry.lock') }}
3636

3737
- name: Install dependencies
3838
if: steps.poetry-cache.outputs.cache-hit != 'true'
3939
run: |
40-
just install
40+
just ci-install
4141
4242
- name: unit test
4343
run: |

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ clean-builds:
5656
rm -rf dist/
5757
rm -rf yutto.egg-info/
5858

59+
ci-install:
60+
poetry install --no-interaction --no-root
61+
5962
ci-fmt-check:
6063
poetry run isort --check-only .
6164
poetry run black --check --diff .

0 commit comments

Comments
 (0)