Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Oct 4, 2023
1 parent 23916a0 commit 16d95c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/actions/install-win-store-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Installs Python from the Windows Store
inputs:
python-version:
description: "Python version to install"
default: "3.11" # should default to the latest Python
default: "3.12" # should default to the latest Python
required: false

runs:
Expand All @@ -16,6 +16,11 @@ runs:
shell: powershell
run: |
switch ( "${{ inputs.python-version }}" ) {
"3.12" {
$StoreURL = "https://apps.microsoft.com/store/detail/python-312/9NCVDN91XZQP"
$ExeDir = Join-Path "$env:LOCALAPPDATA" "\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0"
$ScriptsDir = Join-Path "$env:LOCALAPPDATA" "\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts"
}
"3.11" {
$StoreURL = "https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K"
$ExeDir = Join-Path "$env:LOCALAPPDATA" "\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4.1.0

Expand Down

0 comments on commit 16d95c0

Please sign in to comment.