Skip to content

Commit ba3917a

Browse files
committed
Allow installation of mise from tox workflow
1 parent 22b8f1f commit ba3917a

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
other_names: |
2222
docs
2323
lint
24+
py-mise:tox -e py:mise=true
2425
node-version-file: .tool-versions
2526

2627
check: # This job does nothing and is only used for the branch protection

.github/workflows/tox.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,28 @@ jobs:
144144
run: |
145145
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
146146
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+
147158
- name: Install python build tools
148159
run: |
149160
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+
py39-arm64:tox -e py39:runner=ubuntu-24.04-arm64
163+
python3 -m pip install --upgrade --user --break-system-packages pip uv tox>=4.23.2 tox-uv>=1.16.0
164+
which -a uv pip tox
165+
echo "uv tool update-shell"
154166
tox --version
155-
which -a uv
156-
157-
- name: Log installed dists
158-
run: python3 -m uv pip freeze
167+
echo "Log installed dists"
168+
python3 -m uv pip freeze
159169
160170
- run: ${{ matrix.command }}
161171

0 commit comments

Comments
 (0)