Skip to content

Adapt DeePMD in Ascend platform (NPU) #3577

Adapt DeePMD in Ascend platform (NPU)

Adapt DeePMD in Ascend platform (NPU) #3577

Workflow file for this run

on:
push:
pull_request:
name: Test Python
jobs:
testpython:
name: Test Python
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- python: 3.6
gcc: 4.8
tf: 1.8
- python: 3.6
gcc: 4.8
tf: 1.12
- python: 3.6
gcc: 4.8
tf: 1.14
- python: 3.6
gcc: 5
tf: 1.14
- python: 3.6
gcc: 8
tf: 1.14
- python: 3.7
gcc: 5
tf: 1.14
- python: 3.7
gcc: 6
tf: 1.14
- python: 3.7
gcc: 7
tf: 1.14
- python: 3.7
gcc: 8
tf: 1.14
- python: 3.7
gcc: 5
tf:
- python: 3.7
gcc: 8
tf:
- python: "3.10"
gcc: 5
tf:
- python: "3.10"
gcc: 8
tf:
container: ghcr.io/deepmodeling/deepmd-kit-test-environment:py${{ matrix.python }}-gcc${{ matrix.gcc }}-tf${{ matrix.tf }}
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/deepmd-kit/deepmd-kit
- uses: actions/checkout@master
- name: pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key:
${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- 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 }}
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable"
- run: dp --version
- run: pytest --cov=deepmd source/tests && codecov