Skip to content

Commit

Permalink
updating dependencies for github workflows (formatting) (#25)
Browse files Browse the repository at this point in the history
* updating dependencies for github workflows

* fornat

* uppdating workflows

* workflow debug

* workflow debug

* workflow debug

* workflow debug

* moving test to pricy temporarily
  • Loading branch information
ThibaultLSDC authored Sep 11, 2024
1 parent 2729048 commit 18f7088
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
python-version: '3.10'
cache: 'pip' # caching pip dependencies

- name: Pip install
run: pip install -r requirements.txt
- name: Install AgentLab
run: pip install -e .

- name: Pip list
run: pip list
Expand All @@ -48,7 +48,11 @@ jobs:
directory: "${{ github.workspace }}/miniwob-plusplus/miniwob/html"
port: 8080

# Step to check if MiniWob is reachable
- name: Check MiniWob availability
run: curl -I "http://localhost:8080/miniwob/" || echo "MiniWob not reachable"

- name: Run AgentLab Unit Tests
env:
MINIWOB_URL: "http://localhost:8080/miniwob/"
run: pytest -n 5 --durations=10 -m 'not pricy' -v
run: pytest -n 5 --durations=10 -m 'not pricy' -v tests/
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
black[jupyter]==24.2.0
blacken-docs
pre-commit
pytest==7.3.2
pytest-xdist
pytest-playwright
Expand Down
1 change: 1 addition & 0 deletions src/agentlab/analyze/agent_xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,5 +1065,6 @@ def plot_profiling(ax, step_info_list: list[StepInfo], summary_info: dict, progr
def main():
run_gradio(RESULTS_DIR)


if __name__ == "__main__":
main()
4 changes: 3 additions & 1 deletion tests/experiments/test_task_collection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from agentlab.experiments.task_collections import get_benchmark_env_args
import pytest

from agentlab.experiments.task_collections import get_benchmark_env_args


@pytest.mark.pricy
@pytest.mark.parametrize(
"benchmark_name, expected_length",
[
Expand Down

0 comments on commit 18f7088

Please sign in to comment.