Skip to content

Commit 47c8e68

Browse files
committed
updated workflows for release prp, fixed old arg, made comment more specific
1 parent 55a0250 commit 47c8e68

File tree

6 files changed

+21
-10
lines changed

6 files changed

+21
-10
lines changed

.github/workflows/gh-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Test
55

66
on:
77
push:
8-
branches: [ dev/jan ]
8+
branches: [ master, dev/jan ]
99
pull_request:
10-
branches: [ dev/jan ]
10+
branches: [ master, dev/jan ]
1111

1212
jobs:
1313
build:

.github/workflows/install-from-pypi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Test PyPI Installation
22

33
on:
44
push:
5-
branches: [ dev/jan ]
5+
branches: [ master, dev/jan ]
66
pull_request:
7-
branches: [ dev/jan ]
7+
branches: [ master, dev/jan ]
88

99
jobs:
1010
build:

.github/workflows/publish.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ jobs:
3434
run: poetry install --no-interaction
3535
- name: Publish
3636
env:
37-
PYPI_TOKEN: ${{ secrets.TestPYPI_TOKEN }}
37+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
3838
run: |
39-
poetry config repositories.testpypi https://test.pypi.org/legacy/
40-
poetry config pypi-token.testpypi $PYPI_TOKEN
41-
poetry publish --build -r testpypi
39+
poetry config pypi-token.pypi $PYPI_TOKEN
40+
poetry publish --build -r pypi

mdp_playground/config_processor/config_processor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def get_list_of_varying_configs(var_configs, mode='grid', num_configs=None):
326326
agent_config["agent"][key] = current_config[num_configs_done + list(var_configs[config_type]).index(key)]
327327

328328
elif config_type == "model":
329-
num_configs_done = len(list(var_configs["env"])) + len(list(var_agent_configs))
329+
num_configs_done = len(list(var_configs["env"])) + len(list(var_configs["agent"]))
330330
model_config["model"][key] = current_config[num_configs_done + list(var_configs[config_type]).index(key)]
331331

332332
combined_config = {**agent_config, **model_config, **env_config}

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ scipy = { version = "1.3.0", optional = true }
4747
# { url = "https://ray-wheels.s3-us-west-2.amazonaws.com/master/8d0c1b5e068853bf748f72b1e60ec99d240932c6/ray-0.9.0.dev0-cp36-cp36m-manylinux1_x86_64.whl", optional = true, markers = "extra == 'extras_disc'"}
4848
# ]
4949

50-
# TODO: Poetry does not seem to support mutex extras
50+
# TODO: PEP 508 doees not allow url dependencies
51+
# see: https://github.com/python-poetry/poetry/issues/4107#issuecomment-854514939
5152
# tensorflow = [
5253
# { version = "1.13.0rc1", optional = true, markers = "extra == 'extras_cont'" },
5354
# { version = "2.2.0", optional = true, markers = "extra == 'extras_disc'" }

setup.py

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
{'': ['*']}
1313

1414
extras_require = [
15+
'ray[rllib,debug]==0.7.3',
16+
'tensorflow==2.2.0',
17+
'pillow==6.1.0',
18+
'pandas==0.25.0',
19+
'requests==2.22.0',
20+
'configspace==0.4.10',
21+
'scipy==1.3.0',
22+
'pandas==0.25.0',
23+
]
24+
25+
extras_require_disc = [
1526
'ray[rllib,debug]==0.7.3',
1627
'tensorflow==1.13.0rc1',
1728
'pillow==6.1.0',

0 commit comments

Comments
 (0)