Skip to content

Commit

Permalink
💚 ci: fix ci cache
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Dec 20, 2022
1 parent a4c87c7 commit 791808f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: poetry-cache
with:
path: |
**/.venv
.venv
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
id: poetry-cache
with:
path: |
**/.venv
.venv
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: |
just install
just ci-install
- name: lint
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
id: poetry-cache
with:
path: |
**/.venv
.venv
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: |
just install
just ci-install
- name: unit test
run: |
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ clean-builds:
rm -rf dist/
rm -rf yutto.egg-info/

ci-install:
poetry install --no-interaction --no-root

ci-fmt-check:
poetry run isort --check-only .
poetry run black --check --diff .
Expand Down

0 comments on commit 791808f

Please sign in to comment.