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 355ca09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.9'
PYTHON: '3.10'
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10
- 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
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class HistorySummarizationModule(ABC, nn.Module):

@abstractmethod
def summarize_history(
self, observation: Observation, action: Action | None
self, observation: Observation, action: Optional[Action]
) -> SubjectiveState:
pass

Expand Down

0 comments on commit 355ca09

Please sign in to comment.