Skip to content

Commit 4b7f789

Browse files
committed
adapt for public repo
1 parent 4380314 commit 4b7f789

File tree

21 files changed

+301
-630
lines changed

21 files changed

+301
-630
lines changed

.github/workflows/mirror.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
env:
2626
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
2727
with:
28-
source-repo: "[email protected]:ChiahsinChu/ec-MLP.git"
29-
destination-repo: "[email protected]:chiahsinchu/ec-MLP.git"
28+
source-repo: "[email protected]:${{ github.repository }}.git"
29+
destination-repo: "[email protected]:${{ github.repository_owner }}/ec-MLP.git"
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: CI
1+
name: Test Python
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- devel
5+
branches-ignore:
6+
- gh_pages
87
pull_request:
98

109
jobs:
@@ -15,6 +14,15 @@ jobs:
1514
- name: Checkout repository
1615
uses: actions/checkout@v4
1716

17+
- name: Free Disk Space for Python
18+
uses: endersonmenezes/free-disk-space@v3
19+
with:
20+
remove_android: true
21+
remove_dotnet: true
22+
remove_folders: "/usr/share/swift /usr/local/julia"
23+
rm_cmd: "rmz" # NEW: Faster deletion
24+
rmz_version: "3.1.1" # NEW: Specify rmz version
25+
1826
- name: Set up Python
1927
uses: actions/setup-python@v4
2028
with:
@@ -23,30 +31,26 @@ jobs:
2331
- name: Install dependencies
2432
run: |
2533
python -m pip install --upgrade pip
26-
pip install deepmd-kit[gpu,cu12,torch]
34+
pip install deepmd-kit[gpu,cu12,torch]==3.1.1
2735
pip install .[test,torch_admp] # Install package with test dependencies
2836
2937
- name: Test with pytest
3038
run: |
31-
pytest --cov --junitxml=junit.xml --cov-report=xml
39+
pytest --cov=ec_mlp tests --junitxml=junit.xml --cov-report=xml
3240
3341
- name: Upload coverage to Codecov
3442
uses: codecov/codecov-action@v5
3543
with:
3644
token: ${{ secrets.CODECOV_TOKEN }}
37-
slug: ChiahsinChu/ec-MLP
38-
file: ./coverage.xml
45+
slug: ${{ github.repository }}
46+
files: ./coverage.xml
47+
report_type: coverage
3948

4049
- name: Upload test results to Codecov
4150
if: ${{ !cancelled() }}
42-
uses: codecov/test-results-action@v1
51+
uses: codecov/codecov-action@v5
4352
with:
4453
token: ${{ secrets.CODECOV_TOKEN }}
45-
file: ./junit.xml
46-
47-
- name: Build documentation
48-
run: |
49-
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | tar xz
50-
sudo mv mdbook /usr/local/bin/
51-
cd doc
52-
mdbook build
54+
slug: ${{ github.repository }}
55+
files: ./junit.xml
56+
report_type: test_results

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# README
22

3+
[![CI](https://github.com/chenggroup/ec-MLP/actions/workflows/ci.yml/badge.svg)](https://github.com/chenggroup/ec-MLP/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/chenggroup/ec-MLP/graph/badge.svg?token=742UjFq34v)](https://codecov.io/gh/chenggroup/ec-MLP)
4+
35
DeepMD-kit plugin for ElectroChemical interfaces simulations.
46

57
## Installation
@@ -9,14 +11,14 @@ DeepMD-kit plugin for ElectroChemical interfaces simulations.
911
After installing deepmd-kit (python interface), the plugin for python interface can be installed by:
1012

1113
```bash
12-
git clone https://git.xmu.edu.cn/cheng-group/ec-MLP.git
13-
pip install ec-MLP[torch_admp]
14+
git clone https://github.com/chenggroup/ec-MLP.git
15+
pip install ec-MLP[ec-MLP]
1416
```
1517

1618
For testing, you might need to install additional dependencies via
1719

1820
```bash
19-
pip install ec-MLP[torch_admp,test]
21+
pip install ec-MLP[ec-MLP,test]
2022
cd ec-MLP
2123
python -m unittest discover tests
2224
```
@@ -64,7 +66,7 @@ This plugin is compatible with [DeepMD-kit v3.1.1](https://github.com/deepmodeli
6466

6567
The complete documentation for ec-MLP is available at:
6668

67-
- **Live documentation**: [https://chiahsinchu.github.io/ec-MLP/](https://chiahsinchu.github.io/ec-MLP/)
68-
- **Documentation source**: See the [`doc/`](./doc/) directory
69+
- [**Live documentation**](https://wiki.cheng-group.net/ec-MLP/)
70+
- [**Documentation source**](./doc/)
6971

7072
The documentation is automatically built and deployed to GitHub Pages using GitHub Actions. For more details on building documentation locally or contributing to the documentation, see [`doc/README.md`](./doc/README.md).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dynamic = ["version", "readme"]
1515
description = "ec-MLP: Machine Learning Potential for ElectroChemistry"
1616
license = { file = ".license-header.txt" }
1717
dependencies = [
18-
"deepmd-kit>=3.0.0",
18+
"deepmd-kit>=3.1.1",
1919
"torch>=2.1.0",
2020
"torchopt>=0.7.3",
2121
"numpy>=1.20.0, <2.0",

src/ec_mlp/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: LGPL-3.0-or-later
22
"""ec-MLP: Machine Learning Potential for ElectroChemistry."""
33

4-
from . import pt, tf
4+
from . import tf
55
from ._version import __version__
66

7-
__all__ = ["__version__", "tf", "pt"]
7+
__all__ = ["__version__", "tf"]

src/ec_mlp/pt/modifier/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)