GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Key the linters' venv cache on the exact Python version (#941) · realpython/materials@5093d33

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • linters.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/linters.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linters.yml
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,24 @@ jobs:
2121
- {name: Linux314, python: '3.14', os: ubuntu-latest}
2222
steps:
2323
- name: Check out repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

2626
- name: Set up Python
27-
uses: actions/setup-python@v2
27+
id: setup-python
28+
uses: actions/setup-python@v5
2829
with:
2930
python-version: ${{ matrix.python }}
3031

32+
# The cached venv links to the exact interpreter it was built with,
33+
# so the key includes the resolved patch version (for example, 3.14.10).
3134
- name: Restore cache
3235
id: cache
33-
uses: actions/cache@v3
36+
uses: actions/cache@v4
3437
with:
3538
path: ./venv
36-
key: ${{ matrix.name }}-v2-pip-${{ hashFiles('requirements.txt') }}
39+
key: ${{ matrix.name }}-${{ steps.setup-python.outputs.python-version }}-pip-${{ hashFiles('requirements.txt') }}
3740
restore-keys: |
38-
${{ matrix.name }}-v2-pip-
41+
${{ matrix.name }}-${{ steps.setup-python.outputs.python-version }}-pip-
3942
4043
- name: Install dependencies
4144
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.