浏览代码

publish all 3 packages

/tag-release_8_test0
Chris Elion 4 年前
当前提交
64113c20
共有 5 个文件被更改,包括 19 次插入9 次删除
  1. 14
      .github/workflows/publish_pypi.yaml
  2. 2
      gym-unity/gym_unity/__init__.py
  3. 5
      gym-unity/setup.py
  4. 2
      ml-agents-envs/mlagents_envs/__init__.py
  5. 5
      ml-agents-envs/setup.py

14
.github/workflows/publish_pypi.yaml


push:
tags:
- "release_[0-9]+_test[0-9]+"
- "release_[0-9]+"
strategy:
matrix:
package-path: [ml-agents, ml-agents-env, gym-unity]
steps:
- uses: actions/checkout@master

run: pip install setuptools wheel twine --user
- name: verify git tag vs. version
run: |
cd ml-agents
GITHUB_REF=${{ github.ref }} python setup.py verify
cd ${{ matrix.package-path }}
python setup.py verify
cd ml-agents
cd ${{ matrix.package-path }}
if: startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags') && contains(github.ref, 'test')
packages_dir: ml-agents/dist/
packages_dir: ${{ matrix.package-path }}/dist/

2
gym-unity/gym_unity/__init__.py


__version__ = "0.21.0.dev0"
# Git tag that will be checked to determine whether to trigger upload to pypi
__release_tag__ = None
__release_tag__ = "release_8_test0" # TODO DO NOT MERGE

5
gym-unity/setup.py


description = "verify that the git tag matches our version"
def run(self):
tag = os.getenv("CIRCLE_TAG")
if "GITHUB_REF" in os.environ:
tag = os.getenv("GITHUB_REF").replace("refs/tags/", "")
else:
tag = os.getenv("CIRCLE_TAG")
if tag != EXPECTED_TAG:
info = "Git tag: {} does not match the expected tag of this app: {}".format(

2
ml-agents-envs/mlagents_envs/__init__.py


__version__ = "0.21.0.dev0"
# Git tag that will be checked to determine whether to trigger upload to pypi
__release_tag__ = None
__release_tag__ = "release_8_test0" # TODO DO NOT MERGE

5
ml-agents-envs/setup.py


description = "verify that the git tag matches our version"
def run(self):
tag = os.getenv("CIRCLE_TAG")
if "GITHUB_REF" in os.environ:
tag = os.getenv("GITHUB_REF").replace("refs/tags/", "")
else:
tag = os.getenv("CIRCLE_TAG")
if tag != EXPECTED_TAG:
info = "Git tag: {} does not match the expected tag of this app: {}".format(

正在加载...
取消
保存