Skip to content

Commit 019bff0

Browse files
authored
Add test cases (#339)
* Add test cases * fix test cases
1 parent 95fcdd7 commit 019bff0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/tests.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
- name: Run core tests with jax
3838
if: runner.os == 'Linux' || runner.os == 'macOS'
3939
run: poetry run pytest tests/test_classic_control_jax.py
40+
- name: Run gae tests with jax
41+
if: runner.os == 'Linux' || runner.os == 'macOS'
42+
run: poetry run pytest tests/test_jax_compute_gae.py
4043
- name: Install tuner dependencies
4144
run: poetry install --with optuna
4245
- name: Run tuner tests

tests/test_jax_compute_gae.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def compute_gae_scan(
4141
)
4242
storage = storage.replace(
4343
advantages=advantages,
44-
returns=storage.advantages + storage.values,
44+
returns=advantages + storage.values,
4545
)
4646
return storage
4747

0 commit comments

Comments
 (0)