From 1cb3acbed80c1876e62428b6333364914272f717 Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Mon, 3 Jun 2024 13:32:42 -0700 Subject: [PATCH] Use uv pip --system --- .github/workflows/build.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 02efd51d..8bd404b0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,10 +31,6 @@ jobs: - name: Install debian packages run: sudo apt-get install graphviz - - name: Set the VIRTUAL_ENV variable for uv to work - run: | - echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV - - name: Install uv run: | python -m pip install --upgrade pip @@ -42,13 +38,13 @@ jobs: # We have two cores so we can speed up the testing with xdist - name: Install xdist and openfiles - run: uv pip install pytest-xdist pytest-cov + run: uv pip install --system pytest-xdist pytest-cov - name: Install dependencies - run: uv pip install -r requirements.txt + run: uv pip install --system -r requirements.txt - name: Build and install - run: uv pip install -v --no-deps -e . + run: uv pip install --system -v --no-deps -e . - name: Run tests run: pytest -r a -v -n 3 --cov=astro_metadata_translator --cov=tests --cov-report=xml --cov-report=term --cov-branch @@ -60,7 +56,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Install documenteer - run: uv pip install -r doc/requirements.txt + run: uv pip install --system -r doc/requirements.txt - name: Build documentation if: ${{ matrix.python-version == '3.11' }}