diff --git a/.github/workflows/badge.yml b/.github/workflows/badge.yml index 867222e54..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 @@ -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..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 @@ -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 @@ -55,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: @@ -79,7 +80,7 @@ jobs: architecture: x86 - os: macos-12 architecture: AMD64 - - python: '3.7' + - python: '3.7.17' architecture: arm64 steps: @@ -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 @@ -121,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 6c884af10..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 @@ -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: @@ -59,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: @@ -83,7 +84,7 @@ jobs: architecture: x86 - os: macos-12 architecture: AMD64 - - python: '3.7' + - python: '3.7.17' architecture: arm64 steps: @@ -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 @@ -130,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 2776a3232..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 @@ -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' }} 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) | 简体中文