From 67f6c280bcc5650e2fe3310e2b61beb827ae7e06 Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Mon, 25 Nov 2024 16:21:49 +0100 Subject: [PATCH] uv pip pytest --- .github/workflows/pytest.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 4b6c68a..52f1342 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,6 +16,12 @@ jobs: - name: Check out repository uses: actions/checkout@v3 + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + # Install a specific version of uv. + version: "0.5.4" + - name: Download test file windows if: runner.os == 'Windows' run: | @@ -28,18 +34,9 @@ jobs: - name: Set up python ${{ matrix.python-version }} id: setup-python uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: pip - cache-dependency-path: requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt - - - name: Install pinned requirements - run: | - python -m pip install --upgrade pip - pip install -r requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt --prefer-binary - - name: Install test requirements - run: pip install .[test] + - name: Install in editable mode with test requirements + run: uv pip install -e .[test] - name: Run tests run: |