Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -62,19 +60,11 @@ 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:
CC: gcc-${{ matrix.gcc }}
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")

Expand Down