Skip to content

Commit

Permalink
Use uv pip --system
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jun 3, 2024
1 parent 639cfa0 commit 1cb3acb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,20 @@ 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
pip install uv
# 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
Expand All @@ -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' }}
Expand Down

0 comments on commit 1cb3acb

Please sign in to comment.