Skip to content

Commit

Permalink
Use uv for pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 20, 2024
1 parent c08a450 commit 5029674
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
- 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: pip install uv

# We have two cores so we can speed up the testing with xdist
- name: Install xdist and openfiles
run: pip install pytest-xdist pytest-openfiles pytest-cov
run: uv pip install pytest-xdist pytest-openfiles pytest-cov

- name: Install dependencies
run: pip install -r requirements.txt
run: uv pip install -r requirements.txt

- name: Build and install
run: pip install -v .
run: uv pip install -v .

- name: Run tests
run: pytest -r a -v -n 3 --open-files --cov=astro_metadata_translator --cov=tests --cov-report=xml --cov-report=term --cov-branch
Expand All @@ -50,7 +57,7 @@ jobs:
files: ./coverage.xml

- name: Install documenteer
run: pip install -r doc/requirements.txt
run: uv pip install -r doc/requirements.txt

- name: Build documentation
if: ${{ matrix.python-version == '3.10' }}
Expand Down

0 comments on commit 5029674

Please sign in to comment.