diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5062fc22..6ab6d07e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,6 +29,10 @@ jobs: with: node-version: "20" + # 依存関係のインストール + - name: Install dependencies + run: npm ci + # npmキャッシュの設定 - name: Cache npm dependencies uses: actions/cache@v4 @@ -41,10 +45,6 @@ jobs: restore-keys: | ${{ runner.os }}-node- - # 依存関係のインストール - - name: Install dependencies - run: npm ci - setup-python: runs-on: ubuntu-latest timeout-minutes: 20 @@ -58,6 +58,10 @@ jobs: with: python-version: "3.12" + # 依存関係のインストール + - name: Install dependencies + run: pip install -r requirements.txt + # Pythonの依存関係キャッシュ - name: Cache pip dependencies uses: actions/cache@v4 @@ -68,10 +72,6 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - # 依存関係のインストール - - name: Install dependencies - run: pip install -r requirements.txt - # 環境変数を設定 set-environment: needs: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a8f84a55..a06a9dbc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,10 +21,6 @@ jobs: with: node-version: "20" - # Biomeのインストール - - name: Install Biome - run: npm install -g @biomejs/biome - # npmキャッシュの復元 - name: Restore npm dependencies uses: actions/cache@v4