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

Commit

Permalink
Merge remote-tracking branch 'origin/main' into sfriedowitz/buddy-job…
Browse files Browse the repository at this point in the history
…-runner
  • Loading branch information
Sean Friedowitz committed Mar 18, 2024
2 parents 40d543d + 10a3a61 commit f547ba1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "lm-buddy"
version = "0.3.1"
version = "0.3.2"
authors = [
{ name = "Sean Friedowitz", email = "[email protected]" },
{ name = "Aaron Gonzales", email = "[email protected]" },
Expand Down

0 comments on commit f547ba1

Please sign in to comment.