feat: add unit tests for pair_tab #1363
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run unittests | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: | |
group: Default | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@master | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
pip install -U --pre deepmd-kit --extra-index-url https://deepmodeling.github.io/deepmd-kit/simple | |
pip install -e . | |
pip install -r tests/requirements.txt | |
- name: Test | |
run: DEVICE=cpu PREPROCESS_DEVICE=cpu DISABLE_TQDM=True coverage run --source=./deepmd_pt -m unittest -v -f && coverage report | |
- uses: codecov/codecov-action@v3 |