feat: support reading mise.toml

This commit is contained in:
Jorge Rodriguez 2025-03-13 19:35:00 +01:00
parent 19e4675e06
commit 86322ff86a
No known key found for this signature in database
GPG key ID: A22D46F0D97D588A
5 changed files with 70 additions and 4 deletions

View file

@ -278,6 +278,41 @@ jobs:
with:
python-version-file: .tool-versions
setup-versions-from-mise-toml-file:
name: Setup ${{ matrix.python }} ${{ matrix.os }} mise.toml file
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
[
macos-latest,
windows-latest,
ubuntu-20.04,
ubuntu-22.04,
macos-13,
ubuntu-latest
]
python: [3.13.0, 3.14.0, 3.15.0]
exclude:
- os: windows-latest
python: graalpy-24.1.2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build-mise-toml-file ${{ matrix.python }}
run: |
echo '[tools]
python = "${{ matrix.python }}"
' > mise.toml
- name: setup-python using mise.toml ${{ matrix.python }}
id: setup-python-mise-toml
uses: ./
with:
python-version-file: mise.toml
setup-pre-release-version-from-manifest:
name: Setup 3.14.0-alpha.1 ${{ matrix.os }}
runs-on: ${{ matrix.os }}