Skip to content

Commit

Permalink
bump version to 0.4.9 (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 authored Jul 4, 2022
1 parent 43792bf commit 6505484
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/extra_sys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
os: [macos-latest, windows-latest]
python-version: [3.7, 3.8]
steps:
- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gputest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:
runs-on: [self-hosted, Linux, X64]
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint_and_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Tianshou is still under development. More algorithms and features are going to b
If you find Tianshou useful, please cite it in your publications.

```latex
@article{weng2021tianshou,
@article{tianshou,
title={Tianshou: A Highly Modularized Deep Reinforcement Learning Library},
author={Weng, Jiayi and Chen, Huayu and Yan, Dong and You, Kaichao and Duburcq, Alexis and Zhang, Minghao and Su, Hang and Zhu, Jun},
journal={arXiv preprint arXiv:2107.14171},
Expand Down
4 changes: 2 additions & 2 deletions test/base/test_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_collector(gym_reset_kwargs):
# test NXEnv
for obs_type in ["array", "object"]:
envs = SubprocVectorEnv(
[lambda i=x: NXEnv(i, obs_type) for x in [5, 10, 15, 20]]
[lambda i=x, t=obs_type: NXEnv(i, t) for x in [5, 10, 15, 20]]
)
c3 = Collector(policy, envs, VectorReplayBuffer(total_size=100, buffer_num=4))
c3.collect(n_step=6, gym_reset_kwargs=gym_reset_kwargs)
Expand Down Expand Up @@ -684,7 +684,7 @@ def test_collector_with_atari_setting():

@pytest.mark.skipif(envpool is None, reason="EnvPool doesn't support this platform")
def test_collector_envpool_gym_reset_return_info():
envs = envpool.make_gym("Pendulum-v0", num_envs=4, gym_reset_return_info=True)
envs = envpool.make_gym("Pendulum-v1", num_envs=4, gym_reset_return_info=True)
policy = MyPolicy(action_shape=(len(envs), 1))

c0 = Collector(
Expand Down
2 changes: 1 addition & 1 deletion test/base/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def assert_get(v, expected):
def test_env_obs_dtype():
for obs_type in ["array", "object"]:
envs = SubprocVectorEnv(
[lambda i=x: NXEnv(i, obs_type) for x in [5, 10, 15, 20]]
[lambda i=x, t=obs_type: NXEnv(i, t) for x in [5, 10, 15, 20]]
)
obs = envs.reset()
assert obs.dtype == object
Expand Down
2 changes: 1 addition & 1 deletion test/continuous/test_sac_with_il.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('--task', type=str, default='Pendulum-v0')
parser.add_argument('--task', type=str, default='Pendulum-v1')
parser.add_argument('--reward-threshold', type=float, default=None)
parser.add_argument('--seed', type=int, default=1)
parser.add_argument('--buffer-size', type=int, default=20000)
Expand Down
2 changes: 1 addition & 1 deletion tianshou/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tianshou import data, env, exploration, policy, trainer, utils

__version__ = "0.4.8"
__version__ = "0.4.9"

__all__ = [
"env",
Expand Down

0 comments on commit 6505484

Please sign in to comment.