From 38703a7b517a513deb57139e4f59d62ed0d54437 Mon Sep 17 00:00:00 2001 From: TuTuHuss Date: Thu, 17 Aug 2023 19:29:20 +0800 Subject: [PATCH 1/3] doc(hus): update KV and media link in chinese readme --- README.zh.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.zh.md b/README.zh.md index 9aa285809..3df640903 100644 --- a/README.zh.md +++ b/README.zh.md @@ -1,4 +1,31 @@ # LightZero + +
+ +
+ +--- + +[![Twitter](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2Fopendilab)](https://twitter.com/opendilab) +[![PyPI](https://img.shields.io/pypi/v/LightZero)](https://pypi.org/project/LightZero/) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/LightZero) +![Loc](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/HansBug/e002642132ec758e99264118c66778a4/raw/loc.json) +![Comments](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/HansBug/e002642132ec758e99264118c66778a4/raw/comments.json) + +[![Code Test](https://github.com/opendilab/LightZero/workflows/Code%20Test/badge.svg)](https://github.com/opendilab/LightZero/actions?query=workflow%3A%22Code+Test%22) +[![Badge Creation](https://github.com/opendilab/LightZero/workflows/Badge%20Creation/badge.svg)](https://github.com/opendilab/LightZero/actions?query=workflow%3A%22Badge+Creation%22) +[![Package Release](https://github.com/opendilab/LightZero/workflows/Package%20Release/badge.svg)](https://github.com/opendilab/LightZero/actions?query=workflow%3A%22Package+Release%22) +[![codecov](https://codecov.io/gh/opendilab/LightZero/branch/main/graph/badge.svg?token=XJVDP4EFAT)](https://codecov.io/gh/opendilab/LightZero) + +![GitHub Org's stars](https://img.shields.io/github/stars/opendilab) +[![GitHub stars](https://img.shields.io/github/stars/opendilab/LightZero)](https://github.com/opendilab/LightZero/stargazers) +[![GitHub forks](https://img.shields.io/github/forks/opendilab/LightZero)](https://github.com/opendilab/LightZero/network) +![GitHub commit activity](https://img.shields.io/github/commit-activity/m/opendilab/LightZero) +[![GitHub issues](https://img.shields.io/github/issues/opendilab/LightZero)](https://github.com/opendilab/LightZero/issues) +[![GitHub pulls](https://img.shields.io/github/issues-pr/opendilab/LightZero)](https://github.com/opendilab/LightZero/pulls) +[![Contributors](https://img.shields.io/github/contributors/opendilab/LightZero)](https://github.com/opendilab/LightZero/graphs/contributors) +[![GitHub license](https://img.shields.io/github/license/opendilab/LightZero)](https://github.com/opendilab/LightZero/blob/master/LICENSE) + > LightZero 是一个轻量、高效、易懂的 MCTS+RL 开源算法库。 [English](https://github.com/opendilab/LightZero/blob/main/README.md) | 简体中文 From a72628e827da56bf5990190ba1588c4db420cacb Mon Sep 17 00:00:00 2001 From: TuTuHuss Date: Thu, 17 Aug 2023 21:14:03 +0800 Subject: [PATCH 2/3] dev(hus): update github-action-runner config --- .github/workflows/badge.yml | 4 ++-- .github/workflows/release.yml | 6 ++++-- .github/workflows/release_test.yml | 6 ++++-- .github/workflows/test.yml | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/badge.yml b/.github/workflows/badge.yml index 867222e54..2fe867826 100644 --- a/.github/workflows/badge.yml +++ b/.github/workflows/badge.yml @@ -22,8 +22,8 @@ jobs: python-version: ${{ matrix.python-version }} - name: Download cloc run: | - sudo apt-get update -y - sudo apt-get install -y cloc + yum update -y + yum install -y cloc - name: Get the Numbers run: | cloc . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d93704be8..b0b4dbdaa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,8 @@ jobs: wheel_build: name: Build the wheels - runs-on: ${{ matrix.os }} + #runs-on: ${{ matrix.os }} + runs-on: self-hosted if: ${{ github.repository == 'opendilab/LightZero' }} strategy: fail-fast: false @@ -113,7 +114,8 @@ jobs: # the publishing can only be processed on linux system wheel_publish: name: Publish the wheels to pypi - runs-on: ubuntu-20.04 + #runs-on: ubuntu-20.04 + runs-on: self-hosted needs: - source_build - wheel_build diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 6c884af10..79b1b9d47 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -51,7 +51,8 @@ jobs: wheel_build: name: Try build the wheels - runs-on: ${{ matrix.os }} + #runs-on: ${{ matrix.os }} + runs-on: self-hosted strategy: fail-fast: false matrix: @@ -122,7 +123,8 @@ jobs: # the publishing can only be processed on linux system fake_publish: name: Fake Publish - runs-on: ubuntu-20.04 + #runs-on: ubuntu-20.04 + runs-on: self-hosted needs: - wheel_build - source_build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2776a3232..e17e6d6a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,8 +50,8 @@ jobs: if: ${{ runner.os == 'Linux' }} shell: bash run: | - sudo apt-get update - sudo apt-get install -y tree cloc wget curl make graphviz + yum update + yum install -y tree cloc wget curl make graphviz dot -V - name: Set up system dependences on MacOS if: ${{ env.OS_NAME == 'MacOS' }} From ba8e4f70872a91b636bdda5cee002c61b3f07ed8 Mon Sep 17 00:00:00 2001 From: TuTuHuss Date: Thu, 17 Aug 2023 21:41:42 +0800 Subject: [PATCH 3/3] dev(hus): update github-action-runner config python version --- .github/workflows/badge.yml | 2 +- .github/workflows/release.yml | 12 ++++++------ .github/workflows/release_test.yml | 12 ++++++------ .github/workflows/test.yml | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/badge.yml b/.github/workflows/badge.yml index 2fe867826..834440acc 100644 --- a/.github/workflows/badge.yml +++ b/.github/workflows/badge.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: python-version: - - '3.8' + - '3.8.17' steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b0b4dbdaa..fc2aac03a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: os: - 'ubuntu-20.04' python-version: - - '3.8' + - '3.8.17' steps: - name: Checkout code @@ -56,9 +56,9 @@ jobs: - 'ubuntu-20.04' - 'macos-12' python: - - '3.7' - - '3.8' - - '3.9' + - '3.7.17' + - '3.8.17' + - '3.9.17' # - '3.10' # - '3.11' architecture: @@ -80,7 +80,7 @@ jobs: architecture: x86 - os: macos-12 architecture: AMD64 - - python: '3.7' + - python: '3.7.17' architecture: arm64 steps: @@ -123,7 +123,7 @@ jobs: fail-fast: false matrix: python: - - '3.8' + - '3.8.17' steps: - name: Download packed files to artifacts diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 79b1b9d47..45ad053f6 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -15,7 +15,7 @@ jobs: os: - 'ubuntu-20.04' python-version: - - '3.8' + - '3.8.17' steps: - name: Checkout code @@ -60,9 +60,9 @@ jobs: - 'ubuntu-20.04' - 'macos-12' python: - - '3.7' - - '3.8' - - '3.9' + - '3.7.17' + - '3.8.17' + - '3.9.17' # - '3.10' # - '3.11' architecture: @@ -84,7 +84,7 @@ jobs: architecture: x86 - os: macos-12 architecture: AMD64 - - python: '3.7' + - python: '3.7.17' architecture: arm64 steps: @@ -132,7 +132,7 @@ jobs: fail-fast: false matrix: python: - - '3.8' + - '3.8.17' steps: - name: Download packed files to artifacts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e17e6d6a4..e423a9e77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,9 +23,9 @@ jobs: - 'ubuntu-20.04' - 'macos-12' python-version: - - '3.7' - - '3.8' - - '3.9' + - '3.7.17' + - '3.8.17' + - '3.9.17' steps: - name: Get system version for Linux