Skip to content

Implement batched RGF refactorization and related unit tests #54

Implement batched RGF refactorization and related unit tests

Implement batched RGF refactorization and related unit tests #54

Workflow file for this run

name: DPNEGF Tests
on:
pull_request:
paths-ignore:
- 'docs/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'examples/**'
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-latest
if: github.repository_owner == 'deepmodeling'
# 使用由 'Container' 工作流构建的开发镜像
container: ghcr.io/${{ github.repository_owner }}/dpnegf-main:latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Add git safe directory
# 当在容器内操作由外部挂载的工作区时,需要这个命令来避免 git 权限问题
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Run Unit Tests
# 这个脚本应该包含所有测试命令
run: |
bash ut.sh