Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
reinstate uv
Browse files Browse the repository at this point in the history
  • Loading branch information
veekaybee committed Mar 18, 2024
1 parent f24fd58 commit 70ccb1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ jobs:
- name: Set up Environment
id: setup
run: |
python3 -m venv .venv
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
echo "VIRTUAL_ENV=$HOME/.venv" >> $GITHUB_ENV
continue-on-error: false

- name: Install Docs Dependencies
id: install_build_dependencies
run: |
. .venv/bin/activate
pip install ".[docs]"
uv pip install "lm-buddy[docs] @ ."
continue-on-error: false

- name: Build Documentation
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/merge_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
id: install_dependencies
run: |
. .venv/bin/activate
pip install toml-cli
pip install $(toml get --toml-path pyproject.toml "project.optional-dependencies.ruff[0]")
uv pip install toml-cli
uv pip install $(toml get --toml-path pyproject.toml "project.optional-dependencies.ruff[0]")
continue-on-error: false

- name: Linting with Ruff
Expand All @@ -57,15 +57,16 @@ jobs:
- name: Set up Environment
id: setup
run: |
python3 -m venv .venv
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
echo "VIRTUAL_ENV=$HOME/.venv" >> $GITHUB_ENV
continue-on-error: false

- name: Install Package
id: install_package
run: |
. .venv/bin/activate
pip install ".[dev]"
uv pip install "lm_buddy[dev] @ ."
continue-on-error: false

- name: Unit Tests
Expand Down
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ To do so, follow the steps:
1. Compile a locked version of the package requirements from the `pyproject.toml` file,
which will create a `requirements.txt` file in the `lm-buddy` repository.
This can be done using multiple open-source tools, such as
[pip-tools](https://github.com/jazzband/pip-tools),
[pip-tools](https://github.com/jazzband/pip-tools),or [uv](https://github.com/astral-sh/uv)
as shown below:

```
# pip-tools
pip install pip-tools
pip-compile -o requirements.txt pyproject.toml


# uv
pip install uv
uv pip compile -o requirements.txt pyproject.toml
```

2. When submitting a job to a Ray cluster, specify in the Ray runtime environment the following:
Expand Down

0 comments on commit 70ccb1f

Please sign in to comment.