Skip to content

Commit

Permalink
CI: Use actions/setup-python cache for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Jan 3, 2025
1 parent 7d95755 commit a0b8643
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/package-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.13
cache: 'pip'
- name: Install dependencies (Linux)
if: runner.os == 'linux'
run: |
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install gettext (macOS)
if: runner.os == 'macOS'
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/package-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.13
cache: 'pip'
cache-dependency-path: |
requirements-build.txt
requirements-win.txt
- name: Setup Windows build environment
run: |
& .\scripts\package\win-setup.ps1 `
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies (Linux)
if: runner.os == 'linux'
run: |
Expand Down

0 comments on commit a0b8643

Please sign in to comment.