Skip to content

Commit 7d285dc

Browse files
Update python-app.yml
1 parent c4ea8d5 commit 7d285dc

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/python-app.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: Test Python Versions
22
on: [push, pull_request]
33

44
jobs:
5+
56
test:
67
runs-on: windows-latest
78
strategy:
89
fail-fast: false
910
matrix:
1011
python-version: ['3.13', '3.12', '3.9', '3.10', '3.11', '3.8']
1112

13+
1214
env:
1315
PIP_NO_PYTHON_VERSION_WARNING: 1
1416

@@ -19,25 +21,15 @@ jobs:
1921
run: |
2022
pip cache dir
2123
- name: Set up Python ${{ matrix.python-version }}
22-
# uses: actions/setup-python@v2.3.1
23-
uses: priyagupta108/setup-python@issue-1034
24+
uses: actions/setup-python@v5
25+
# uses: priyagupta108/setup-python@issue-1034
2426
with:
2527
python-version: ${{ matrix.python-version }}
26-
# cache: 'pip'
27-
# cache-dependency-path:
28-
# requirements/*.txt
29-
30-
- name: Cache pip dependencies
31-
uses: actions/cache@v4
32-
with:
33-
path: ~\AppData\Local\pip\Cache
34-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
35-
restore-keys: |
36-
${{ runner.os }}-pip-
28+
cache: 'pip'
29+
cache-dependency-path:
30+
requirements/*.txt
3731

3832
- name: Install dependencies
3933
run: |
4034
python -m pip install --upgrade pip
4135
pip install -r requirements/requirements.txt
42-
43-

0 commit comments

Comments
 (0)