From 71598294a1daba3d792f2c46d92af3b531d59510 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 13 Mar 2026 21:08:43 +0100 Subject: [PATCH] chore(ci): Update python setup --- .github/workflows/ci.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adff0cf57..69f013211 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: with: persist-credentials: false - - name: Set up Python + - name: Set up Python 🐍 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ matrix.python-version }} @@ -182,7 +182,7 @@ jobs: with: persist-credentials: false - - name: Set up Python + - name: Set up Python 🐍 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0 with: python-version: "3.12" @@ -218,7 +218,7 @@ jobs: run: | ./tests/test_docs.sh - - name: Set up Python + - name: Set up Python 🐍 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: "3.13" @@ -247,22 +247,25 @@ jobs: # Run pytest with "live" checks name: "Tests and Linting - Online tests" runs-on: ubuntu-24.04 + strategy: + matrix: + python-version: ["3.12"] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - name: Set up Python + - name: Set up Python 🐍 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: "3.12" + python-version: "${{ matrix.python-version }}" - name: Install uv uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 with: activate-environment: true enable-cache: true - python-version: "3.12" + python-version: "${{ matrix.python-version }}" cache-dependency-glob: "requirements**.txt" cache-suffix: "3.12" @@ -319,6 +322,9 @@ jobs: pre-commit, ] runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: ["3.13"] steps: @@ -331,14 +337,20 @@ jobs: with: persist-credentials: false - - name: Set up Python + - name: Set up Python 🐍 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: "3.12" + python-version: "${{ matrix.python-version }}" + + - name: Install uv + uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + with: + activate-environment: true + python-version: "${{ matrix.python-version }}" - name: Build distribution run: | - pip install -U build + uv pip install -U build python -m build --sdist --wheel - name: Upload artifacts 📦 @@ -351,7 +363,6 @@ jobs: - name: Build Client distribution run: | - pip install -U build python -m build --sdist --wheel ft_client - name: Upload artifacts 📦