Skip to content

Commit

Permalink
Set Python version to v3.12.8
Browse files Browse the repository at this point in the history
  • Loading branch information
serkor1 committed Jan 6, 2025
1 parent b6ef067 commit 8e1c7b3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/actions/setup-reticulate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
python-version:
description: "Python version to install"
required: true
default: "3.12.x"
default: "3.12.8"

outputs:
reticulate-python:
Expand All @@ -32,19 +32,11 @@ runs:
PYTHON_VERSION: ${{ inputs.python-version }}
run: |
# 1) get python version
# NOTE: it's on the form 3.12.x
python_version <- paste0(">=",gsub(
pattern = ".x",
replacement = "",
x = Sys.getenv("PYTHON_VERSION")
))
# 2) create virtual environment
# with specified version
path_to_python <- reticulate::virtualenv_create(
envname = "r-reticulate",
python_version = python_version,
python_version = Sys.getenv("PYTHON_VERSION"),
packages = c(
"numpy",
"scipy",
Expand Down

0 comments on commit 8e1c7b3

Please sign in to comment.