From 2086fa17ac81652d063951c5c88a6237524f59ca Mon Sep 17 00:00:00 2001 From: ff137 Date: Wed, 11 Dec 2024 13:44:11 +0200 Subject: [PATCH] :construction_worker: Simplify and use mise for workflow --- .github/workflows/sonarcloud.yml | 34 ++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index d53a3d20f..8abae3369 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -49,11 +49,37 @@ jobs: with: fetch-depth: 0 # Required for proper blame data in SonarCloud - # Setup Python - - name: Setup Python - uses: actions/setup-python@v2 + - name: Overwrite .mise.toml # Simplify mise in this workflow + run: | + cat < .mise.toml + [tools] + python = "3.12" + "pipx:poetry" = "1.8" + uv = "0.4" + + [settings] + experimental = true + jobs = 1 + pipx_uvx = true + python_compile = false + + [env] + # Use Python/Mise managed virtual environment + POETRY_VIRTUALENVS_CREATE = "false" + # Setup Python Virtual Environment + _.python.venv = { path = ".venv", create = true } + + [tasks."poetry:install"] + description = "Poetry Install dependencies for all submodules" + depends = ["poetry:install:*"] + EOF + + - name: Install dependencies + uses: jdx/mise-action@v2 with: - python-version: "3.12" + cache: true + experimental: true + install: true # Install dependencies - name: Install dependencies with Poetry