From 1ac584ca4b388630d6a15f87eee860f3f9399574 Mon Sep 17 00:00:00 2001 From: David Abramov Date: Tue, 22 Apr 2025 11:31:32 -0700 Subject: [PATCH 1/3] bumping actions/setup-python from v2 to v5 to solve caching issue --- .github/workflows/python-app.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5d38fb01..0da578cd 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - uses: actions/checkout@v + - name: Set up Python 3.11 + uses: actions/setup-python@v5 with: python-version: 3.11 cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade pip --no-cache-dir pip install flake8 pytest pip install . if [ -f requirements.txt ]; then pip install -r requirements.txt; fi From fa5c395ecc8984ab63bd0c77460e072bf680c6df Mon Sep 17 00:00:00 2001 From: David Abramov Date: Tue, 22 Apr 2025 11:34:45 -0700 Subject: [PATCH 2/3] accidentally removed the number 2 from checkout@v2... adding it back --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 0da578cd..448f0b8b 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v + - uses: actions/checkout@v2 - name: Set up Python 3.11 uses: actions/setup-python@v5 with: From a4e863061fbccb7732e31dbce4334efe6a2449a6 Mon Sep 17 00:00:00 2001 From: David Abramov Date: Tue, 22 Apr 2025 15:50:10 -0700 Subject: [PATCH 3/3] reorderign --no-cache-dir command, and adding it to the other pip install lines --- .github/workflows/python-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 448f0b8b..1164dede 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,9 +19,9 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip --no-cache-dir - pip install flake8 pytest - pip install . + python -m pip install --no-cache-dir --upgrade pip + pip install --no-cache-dir flake8 pytest + pip install --no-cache-dir . if [ -f requirements.txt ]; then pip install -r requirements.txt; fi if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi - name: Lint with flake8