diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 73d123813..364e508ae 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -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 diff --git a/.github/workflows/lint-and-fmt.yml b/.github/workflows/lint-and-fmt.yml index 3302cafa3..678736fe0 100644 --- a/.github/workflows/lint-and-fmt.yml +++ b/.github/workflows/lint-and-fmt.yml @@ -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: | diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a9475425b..bb5fc7fa4 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -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: | diff --git a/justfile b/justfile index cb7460b6a..5b74970bd 100644 --- a/justfile +++ b/justfile @@ -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 .