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

Merge from master #25

Merged
merged 23 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Documentation build and deploy
name: 🦜🔍 Documentation build and deploy

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: 🦜🔍 Lint

on:
push:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Aviary testing
name: 🦜🔍 Aviary Testing

on:
push:
Expand Down Expand Up @@ -29,11 +29,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U "ray>=2.4.0"
pip install -e ".[backend, test]"
pip install -e ".[backend, test, frontend]"
- name: Run the backend
run: |
uvicorn tests.mock_app:app &
sleep 5
- name: Test with pytest
env:
AVIARY_TOKEN: ${{ secrets.AVIARY_TOKEN }}
AVIARY_URL: ${{ secrets.AVIARY_URL }}
AVIARY_URL: http://0.0.0.0:8000/
run: |
pytest tests/test_mock_sdk.py
pytest tests/test_*
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,7 @@ results/
aviary-output.json
evaluation-output.json
prompts.txt


# docs build
site/
235 changes: 0 additions & 235 deletions README.ipynb

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ To run the tests, you need to install the `test` dependencies:
pip install -e .[test]
```

After that, run Aviary with a test model like so:

```shell
aviary run tests/hf-internal-testing--tiny-random-gpt2.yaml
```

and then simply run `pytest`:

```shell
Expand Down
2 changes: 1 addition & 1 deletion aviary/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from aviary.api.sdk import *
from aviary.sdk import *
Loading