Skip to content

Commit 6505484

Browse files
authored
bump version to 0.4.9 (#684)
1 parent 43792bf commit 6505484

File tree

10 files changed

+26
-6
lines changed

10 files changed

+26
-6
lines changed

.github/workflows/extra_sys.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
os: [macos-latest, windows-latest]
1212
python-version: [3.7, 3.8]
1313
steps:
14+
- name: Cancel previous run
15+
uses: styfle/cancel-workflow-action@0.9.1
16+
with:
17+
access_token: ${{ github.token }}
1418
- uses: actions/checkout@v2
1519
- name: Set up Python ${{ matrix.python-version }}
1620
uses: actions/setup-python@v2

.github/workflows/gputest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ jobs:
77
runs-on: [self-hosted, Linux, X64]
88
if: "!contains(github.event.head_commit.message, 'ci skip')"
99
steps:
10+
- name: Cancel previous run
11+
uses: styfle/cancel-workflow-action@0.9.1
12+
with:
13+
access_token: ${{ github.token }}
1014
- uses: actions/checkout@v2
1115
- name: Set up Python 3.8
1216
uses: actions/setup-python@v2

.github/workflows/lint_and_docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ jobs:
66
check:
77
runs-on: ubuntu-latest
88
steps:
9+
- name: Cancel previous run
10+
uses: styfle/cancel-workflow-action@0.9.1
11+
with:
12+
access_token: ${{ github.token }}
913
- uses: actions/checkout@v2
1014
- name: Set up Python 3.8
1115
uses: actions/setup-python@v2

.github/workflows/profile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, 'ci skip')"
99
steps:
10+
- name: Cancel previous run
11+
uses: styfle/cancel-workflow-action@0.9.1
12+
with:
13+
access_token: ${{ github.token }}
1014
- uses: actions/checkout@v2
1115
- name: Set up Python 3.8
1216
uses: actions/setup-python@v2

.github/workflows/pytest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
matrix:
1111
python-version: [3.7, 3.8, 3.9]
1212
steps:
13+
- name: Cancel previous run
14+
uses: styfle/cancel-workflow-action@0.9.1
15+
with:
16+
access_token: ${{ github.token }}
1317
- uses: actions/checkout@v2
1418
- name: Set up Python ${{ matrix.python-version }}
1519
uses: actions/setup-python@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Tianshou is still under development. More algorithms and features are going to b
281281
If you find Tianshou useful, please cite it in your publications.
282282

283283
```latex
284-
@article{weng2021tianshou,
284+
@article{tianshou,
285285
title={Tianshou: A Highly Modularized Deep Reinforcement Learning Library},
286286
author={Weng, Jiayi and Chen, Huayu and Yan, Dong and You, Kaichao and Duburcq, Alexis and Zhang, Minghao and Su, Hang and Zhu, Jun},
287287
journal={arXiv preprint arXiv:2107.14171},

test/base/test_collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_collector(gym_reset_kwargs):
205205
# test NXEnv
206206
for obs_type in ["array", "object"]:
207207
envs = SubprocVectorEnv(
208-
[lambda i=x: NXEnv(i, obs_type) for x in [5, 10, 15, 20]]
208+
[lambda i=x, t=obs_type: NXEnv(i, t) for x in [5, 10, 15, 20]]
209209
)
210210
c3 = Collector(policy, envs, VectorReplayBuffer(total_size=100, buffer_num=4))
211211
c3.collect(n_step=6, gym_reset_kwargs=gym_reset_kwargs)
@@ -684,7 +684,7 @@ def test_collector_with_atari_setting():
684684

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

690690
c0 = Collector(

test/base/test_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def assert_get(v, expected):
214214
def test_env_obs_dtype():
215215
for obs_type in ["array", "object"]:
216216
envs = SubprocVectorEnv(
217-
[lambda i=x: NXEnv(i, obs_type) for x in [5, 10, 15, 20]]
217+
[lambda i=x, t=obs_type: NXEnv(i, t) for x in [5, 10, 15, 20]]
218218
)
219219
obs = envs.reset()
220220
assert obs.dtype == object

test/continuous/test_sac_with_il.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
def get_args():
2323
parser = argparse.ArgumentParser()
24-
parser.add_argument('--task', type=str, default='Pendulum-v0')
24+
parser.add_argument('--task', type=str, default='Pendulum-v1')
2525
parser.add_argument('--reward-threshold', type=float, default=None)
2626
parser.add_argument('--seed', type=int, default=1)
2727
parser.add_argument('--buffer-size', type=int, default=20000)

tianshou/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from tianshou import data, env, exploration, policy, trainer, utils
22

3-
__version__ = "0.4.8"
3+
__version__ = "0.4.9"
44

55
__all__ = [
66
"env",

0 commit comments

Comments
 (0)