File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,25 @@ jobs:
49
49
run : |
50
50
brew upgrade
51
51
brew install lua
52
+ - name : Setup Python
53
+ uses : actions/setup-python@v5
54
+ with :
55
+ python-version-file : ' .python-version'
56
+ - name : Setup venv
57
+ run : |
58
+ python3 -m venv .venv
59
+ source .venv/bin/activate
60
+ echo "VIRTUAL_ENV=${VIRTUAL_ENV}" >> $GITHUB_ENV
61
+ echo "${VIRTUAL_ENV}/bin" >> $GITHUB_PATH
62
+ echo "${VIRTUAL_ENV}/lib" >> $GITHUB_PATH
63
+ echo "${VIRTUAL_ENV}/lib64" >> $GITHUB_PATH
64
+ echo "LD_LIBRARY_PATH=${VIRTUAL_ENV}/lib:${VIRTUAL_ENV}/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
65
+ echo "PYTHON_PATH=${VIRTUAL_ENV}/bin" >> "$GITHUB_OUTPUT"
66
+ echo "RETICULATE_PYTHON=${VIRTUAL_ENV}/bin/python3" >> "$GITHUB_OUTPUT"
67
+ echo "PYTHON_VERSION=$(python --version)" >> "$GITHUB_OUTPUT"
52
68
- name : Setup pip
53
69
run : |
54
- if [ "${{ matrix.os }}" = "macos-latest" ]; then
55
- sudo pip3 install -U pip --break-system-packages
56
- else
57
- sudo pip3 install -U pip
58
- fi
70
+ pip3 install -U pip
59
71
- name : Get pip cache
60
72
id : pip-cache
61
73
run : |
69
81
${{ runner.os }}-pip-
70
82
- name : Setup cached item
71
83
run : |
72
- if [ "${{ matrix.os }}" = "macos-latest" ]; then
73
- pip3 install --user -r requirements.txt --break-system-packages
74
- else
75
- pip3 install --user -r requirements.txt
76
- fi
84
+ pip3 install -r requirements.txt
77
85
- name : Setup Vim
78
86
id : ' vim'
79
87
uses : thinca/action-setup-vim@v2
Original file line number Diff line number Diff line change
1
+ 3.13.0
2
+
You can’t perform that action at this time.
0 commit comments