From efd12bab585f98ce0b9cb4860a27cd068682c4e3 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sun, 29 Dec 2024 11:47:40 +0000 Subject: [PATCH] Replace asdf with mise --- .github/renovate.json | 3 +++ .github/workflows/tox.yml | 6 ++++-- .readthedocs.yml | 8 +++----- .tool-versions | 1 - mise.toml | 3 +++ tox.ini | 2 +- 6 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 .tool-versions create mode 100644 mise.toml diff --git a/.github/renovate.json b/.github/renovate.json index 947f11f..678d5ea 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -3,6 +3,9 @@ "automerge": true, "automergeStrategy": "squash", "configMigration": true, + "extends": ["helpers:pinGitHubActionDigests"], + "labels": ["dependencies", "skip-changelog"], + "packageRules": [], "pre-commit": { "enabled": true } diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 62c3311..bbbac45 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -126,8 +126,7 @@ jobs: needs: - build - runs-on: ubuntu-latest - + runs-on: ubuntu-22.04 steps: # checkout needed for codecov action which needs codecov.yml file - uses: actions/checkout@v4 @@ -137,6 +136,9 @@ jobs: with: python-version: "3.12" + - name: Install mise + uses: jdx/mise-action@v2 + - run: pip3 install 'coverage>=7.5.1' - name: Merge logs into a single archive diff --git a/.readthedocs.yml b/.readthedocs.yml index 92eb51f..59476ee 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,11 +10,9 @@ build: tools: python: "3.11" commands: - - asdf --version - - asdf plugin add github-cli - - asdf install - - pip install --user tox - - python3 -m tox -e docs -- --strict --site-dir=_readthedocs/html/ + - curl https://mise.run | sh + - export PATH="$HOME/.local/bin:$PATH" + - ~/.local/bin/mise exec python3 -m tox -e docs python: install: - method: pip diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index c6044af..0000000 --- a/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -github-cli 2.64.0 diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..a21de03 --- /dev/null +++ b/mise.toml @@ -0,0 +1,3 @@ +[tools] +github-cli = "latest" +python = "latest" diff --git a/tox.ini b/tox.ini index bec8b17..10f0921 100644 --- a/tox.ini +++ b/tox.ini @@ -107,7 +107,7 @@ skip_install = false usedevelop = true commands = sh -c "cd docs && mk changelog" - mkdocs build {posargs:} + mkdocs build --strict --site-dir=_readthedocs/html/ {posargs:} white_list_externals = sh