Skip to content

Commit

Permalink
WIP documentation generation via gh actions (#107)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #107

Differential Revision: D67157339
  • Loading branch information
Dmytro Korenkevych authored and facebook-github-bot committed Dec 12, 2024
1 parent c9576ed commit f2f124a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ jobs:
python-version: 3.9
- name: Install dependencies
run: |
pip install pdoc3
pip install pytest
pip install pytest-cov
pip install -e .
- name: Update documentation
run: |
pdoc -o ./html pearl
- name: Generate coverage report
run: |
pytest --cov=./ --cov-report=xml
Expand Down
6 changes: 3 additions & 3 deletions pearl/api/action_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class ActionResult:
reward: Reward
terminated: bool
truncated: bool
info: dict[str, Any] | None = None
cost: float | None = None
available_action_space: ActionSpace | None = None
info: Optional[dict[str, Any]] = None
cost: Optional[float] = None
available_action_space: Optional[ActionSpace] = None

@property
def done(self) -> bool:
Expand Down

0 comments on commit f2f124a

Please sign in to comment.