diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index aa77283..5b1b96c 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -40,7 +40,7 @@ jobs: uses: actions/cache@v3 with: path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth - key: ${{ runner.os }}-cookie-${{ hashFiles('/home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth') }} + key: ${{ runner.os }}-cookie-${{ hashFiles('/home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json') }} restore-keys: | ${{ runner.os }}-cookie- @@ -48,7 +48,11 @@ jobs: run: | pwd python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f requirements.txt ] && ! pip freeze | diff - requirements.txt > /dev/null; then + pip install -r requirements.txt + else + echo "No changes in requirements.txt, skipping installation" + fi - name: Set Permission run: |