diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index 93b65dcca5..dd8bded91d 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -49,11 +49,9 @@ jobs: gcc: 8 tf: + container: ghcr.io/deepmodeling/deepmd-kit-test-environment:py${{ matrix.python }}-gcc${{ matrix.gcc }}-tf${{ matrix.tf }} steps: - uses: actions/checkout@master - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - name: pip cache uses: actions/cache@v2 with: @@ -62,9 +60,6 @@ jobs: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - - run: | - sudo apt update - sudo apt install gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }} - run: python -m pip install -U pip>=21.3.1 - run: pip install -e .[cpu,test] codecov env: @@ -72,9 +67,4 @@ jobs: CXX: g++-${{ matrix.gcc }} TENSORFLOW_VERSION: ${{ matrix.tf }} - run: dp --version - - name: Prepare parallel runtime - if: ${{ matrix.tf == '' }} - run: | - sudo apt install libopenmpi-dev openmpi-bin - HOROVOD_WITHOUT_GLOO=1 HOROVOD_WITH_TENSORFLOW=1 pip install horovod mpi4py - run: pytest --cov=deepmd source/tests && codecov diff --git a/pyproject.toml b/pyproject.toml index 2e9e3239ab..50fe237581 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools", "setuptools_scm", "wheel", "scikit-build", "cmake", "ninja", "m2r"] +requires = ["setuptools", "setuptools_scm", "wheel", "scikit-build", "cmake", "ninja"] diff --git a/setup.py b/setup.py index d46703e463..f843395ed3 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ # read readme to markdown readme_file = Path(__file__).parent / "README.md" -readme = readme_file.read_text() +readme = readme_file.read_text(encoding="utf-8") tf_version = os.environ.get("TENSORFLOW_VERSION", "")