Skip to content

Commit

Permalink
Fix Mise (#1163)
Browse files Browse the repository at this point in the history
* Instead of using `poetry` which depends on System Python we use `uv`
  as `pipx` to install `poetry` in the Mise managed python venv
  • Loading branch information
rblaine95 authored Nov 5, 2024
1 parent 2bbe280 commit 696510f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,22 +422,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Mise
uses: jdx/mise-action@v2
with:
cache: true
experimental: true # Required for mise tasks
install: true
- name: Load Mise env
run: |
mise env -s bash \
| grep -v 'export PATH=' \
| cut -d' ' -f2 \
>> "$GITHUB_ENV"
- name: Install dependencies
run: |
source .venv/bin/activate
pip install coverage
run: pip install coverage
- name: Download all .coverage artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -450,12 +436,10 @@ jobs:
done
- name: Combine coverage files
run: |
source .venv/bin/activate
coverage combine
coverage report
- name: Generate XML coverage report
run: |
source .venv/bin/activate
coverage xml
- name: Upload coverage to Codacy
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml
Expand Down
5 changes: 4 additions & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# https://mise.jdx.dev
[tools]
"go:github.com/nats-io/natscli/nats" = "0.1"
"pipx:poetry" = "1.8"
go = "1.23"
helm = "3"
helmfile = "0.169"
istioctl = "1.23"
kind = "0.24"
kubectl = "1.31"
poetry = { version = "1.8", pyproject = "pyproject.toml" }
pre-commit = "4.0"
python = "3.12"
tilt = "0.33"
usage = "latest"
uv = "0.4"

[settings]
experimental = true
# Prevent Mise from running multiple jobs at the same time.
# Prevents `poetry install` from running in parallel which
# results in multiple threads trying to write to the same file.
jobs = 1
# Use UV instead of pipx for installing Python binaries
pipx_uvx = true
# Install precompiled python binary
python_compile = false

Expand Down

0 comments on commit 696510f

Please sign in to comment.