From dcc5d7ec031726615af5c862c4596fd769897c66 Mon Sep 17 00:00:00 2001 From: Nathan Painchaud Date: Fri, 31 Jan 2025 14:16:30 +0100 Subject: [PATCH] Let `uv` handle the set up of python in the `tests` GitHub workflow --- .github/workflows/tests.yaml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 43c826e22..3839a2ee8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -22,14 +22,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install uv + - name: Install uv and set the python version uses: astral-sh/setup-uv@v5 with: pyproject-file: "pyproject.toml" - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: python-version: ${{ matrix.python-version }} - name: Install the project @@ -50,12 +46,7 @@ jobs: with: pyproject-file: "pyproject.toml" - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version-file: ".python-version" - - - name: Install the project + - name: Install uv-managed python version and the project run: uv sync --extra cpu - name: Run tests and collect coverage