Skip to content

Commit

Permalink
Check if cached Python versions in CI are the latest
Browse files Browse the repository at this point in the history
Fixes issue where Python 3.13 beta 2 is available through actions/setup-python, but the cached version in CI is stuck on 3.13 beta 1.
  • Loading branch information
clin1234 authored Jun 10, 2024
1 parent de68ef7 commit 1834836
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
architecture: ${{ matrix.architecture }}
cache: pip
cache-dependency-path: .github/workflows/main.yml
check-latest: true

- name: Setup environment
run: |
Expand Down Expand Up @@ -77,6 +78,7 @@ jobs:
architecture: "x64"
cache: pip
cache-dependency-path: .github/workflows/main.yml
check-latest: true

- name: Setup Environment
run: |
Expand Down Expand Up @@ -136,6 +138,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: .github/workflows/main.yml
check-latest: true
- run: pip install types-regex types-setuptools mypy==1.9
- run: mypy . --python-version=${{ matrix.python-version }}

Expand All @@ -152,6 +155,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: .github/workflows/main.yml
check-latest: true
# pyright vendors typeshed, but let's make sure we have the most up to date stubs
- run: pip install types-regex types-setuptools
- uses: jakebailey/pyright-action@v2
Expand Down

0 comments on commit 1834836

Please sign in to comment.