File tree 2 files changed +25
-8
lines changed
2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 21
21
other_names : |
22
22
docs
23
23
lint
24
+ py-mise:tox -e py:mise=true
24
25
node-version-file : .tool-versions
25
26
26
27
check : # This job does nothing and is only used for the branch protection
Original file line number Diff line number Diff line change @@ -144,18 +144,34 @@ jobs:
144
144
run : |
145
145
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
146
146
147
+ - name : Install mise
148
+ if : ${{ matrix.mise == 'true' }}
149
+ run : |
150
+ set -exuo pipefail
151
+ type mise || {
152
+ curl https://mise.run | sh
153
+ echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH
154
+ echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH
155
+ }
156
+ mise install
157
+
147
158
- name : Install python build tools
148
159
run : |
149
160
set -exuo pipefail
150
- echo $PATH
151
- python3 -m pip install --upgrade pip uv
152
- # uv tool update-shell
153
- uv tool install "tox>=4.23.2" --with "tox-uv>=1.16.0"
161
+ echo PATH=$PATH
162
+ # that depends on python3 blend being used and might not be already in path:
163
+ SCRIPTS_DIR=$(python3 -c 'import os,sysconfig;print(sysconfig.get_path("scripts",f"{os.name}_user"))')
164
+ if [[ ":$PATH:" != *":$SCRIPTS_DIR:"* ]]; then
165
+ export PATH=$SCRIPTS_DIR:$PATH
166
+ echo "$SCRIPTS_DIR" >> $GITHUB_PATH
167
+ echo "Added $SCRIPTS_DIR to PATH to avoid further issues."
168
+ fi
169
+ python3 -m pip install --upgrade --user --break-system-packages pip uv 'tox>=4.23.2' 'tox-uv>=1.16.0'
170
+ which -a uv pip tox
171
+ echo "uv tool update-shell"
154
172
tox --version
155
- which -a uv
156
-
157
- - name : Log installed dists
158
- run : python3 -m uv pip freeze
173
+ echo "Log installed dists"
174
+ python3 -m uv pip freeze
159
175
160
176
- run : ${{ matrix.command }}
161
177
You can’t perform that action at this time.
0 commit comments