Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e41b653
ci: use OIDC for codecov-action
njzjz-bot Jan 24, 2026
71c76a4
Merge pull request #105 from deepmodeling/devel-1.3.0
kevinwenminion Jun 6, 2026
cb5a561
Bump actions/setup-python from 5 to 6
dependabot[bot] Jun 8, 2026
eea652e
Bump codecov/codecov-action from 5 to 7
dependabot[bot] Jun 8, 2026
b6ac19d
Bump actions/upload-artifact from 4 to 7
dependabot[bot] Jun 8, 2026
3540416
Bump actions/checkout from 4 to 6
dependabot[bot] Jun 8, 2026
1751484
Bump actions/download-artifact from 4 to 8
dependabot[bot] Jun 8, 2026
d966e30
Merge pull request #112 from deepmodeling/devel-1.3.0
kevinwenminion Jun 8, 2026
a35667e
Merge pull request #110 from deepmodeling/dependabot/github_actions/a…
kevinwenminion Jun 8, 2026
be2ae61
Merge pull request #109 from deepmodeling/dependabot/github_actions/a…
kevinwenminion Jun 8, 2026
be7cf11
Merge pull request #108 from deepmodeling/dependabot/github_actions/a…
kevinwenminion Jun 8, 2026
0795b59
Merge pull request #107 from deepmodeling/dependabot/github_actions/c…
kevinwenminion Jun 8, 2026
27138f4
Merge pull request #106 from deepmodeling/dependabot/github_actions/a…
kevinwenminion Jun 8, 2026
0711856
Merge pull request #99 from njzjz-bot/codecov-oidc
kevinwenminion Jun 8, 2026
98987b5
Bump docker/setup-buildx-action from 3 to 4
dependabot[bot] Jun 15, 2026
33393d0
Bump docker/build-push-action from 6 to 7
dependabot[bot] Jun 15, 2026
ee13def
Bump docker/login-action from 3 to 4
dependabot[bot] Jun 15, 2026
ea3594b
Bump actions/checkout from 4 to 7
dependabot[bot] Jun 22, 2026
a2c1ccd
Merge pull request #114 from deepmodeling/dependabot/github_actions/d…
kevinwenminion Jul 1, 2026
cf19b0d
Merge pull request #115 from deepmodeling/dependabot/github_actions/d…
kevinwenminion Jul 1, 2026
f8b7a28
Merge pull request #116 from deepmodeling/dependabot/github_actions/d…
kevinwenminion Jul 1, 2026
7343059
Merge pull request #117 from deepmodeling/dependabot/github_actions/a…
kevinwenminion Jul 1, 2026
0b4bdba
Merge pull request #119 from deepmodeling/devel-1.3.0
kevinwenminion Jul 1, 2026
4ad3262
fix(abacus): use --config flag for phonopy 4.1.0 load mode compatibility
Letian88 Jul 3, 2026
cbac2a9
test: update phonon/gruneisen mocks for --config phonopy command
Jul 7, 2026
bca347c
Merge pull request #120 from Letian88/main
kevinwenminion Jul 7, 2026
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
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Python unit-tests

on:
- push
- pull_request
- push
- pull_request

jobs:
build:
Expand All @@ -29,6 +29,10 @@ jobs:
export DFLOW_DEBUG=1
coverage run -m unittest -v -f
coverage report
- uses: codecov/codecov-action@v5
- uses: codecov/codecov-action@v7
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
use_oidc: true
permissions:
id-token: write
8 changes: 4 additions & 4 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: docker/setup-buildx-action@v3
- uses: docker/setup-buildx-action@v4

- uses: docker/login-action@v3
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
- uses: docker/build-push-action@v7
with:
context: .
file: docs/Dockerfile.bohrium
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
Expand All @@ -33,17 +33,17 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Build package
run: |
python -m pip install --upgrade pip build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/
Expand All @@ -61,7 +61,7 @@ jobs:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
steps:
- name: Download distributions
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
Expand Down
2 changes: 1 addition & 1 deletion apex/core/property/Gruneisen.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ def _ensure_abacus_volume_outputs(
if not os.path.isfile("FORCE_CONSTANTS"):
raise FileNotFoundError(f"FORCE_CONSTANTS was not created in {helper_dir}")
if not os.path.isfile("mesh.yaml"):
subprocess.check_call(Phonon.phonopy_command("band.conf"), shell=True)
subprocess.check_call(Phonon.phonopy_command("phonopy_disp.yaml --config band.conf"), shell=True)
self._write_band_dat()
finally:
os.chdir(cwd)
Expand Down
2 changes: 1 addition & 1 deletion apex/core/property/Phonon.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def _compute_lower(self, output_file, all_tasks, all_res):
if not os.path.exists("FORCE_SETS"):
raise FileNotFoundError("FORCE_SETS was not created")
print('FORCE_SETS is created')
subprocess.check_call(self.phonopy_command("band.conf"), shell=True)
subprocess.check_call(self.phonopy_command("phonopy_disp.yaml --config band.conf"), shell=True)
self.write_band_dat()

elif self.inter_param["type"] == 'vasp':
Expand Down
9 changes: 6 additions & 3 deletions tests/test_gruneisen.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def fake_check_call(command, shell):
Path("FORCE_SETS").write_text("fake force sets\n")
elif command == Phonon.phonopy_setup_command("phonopy_disp.yaml --writefc"):
Path("FORCE_CONSTANTS").write_text("fake force constants\n")
elif command == Phonon.phonopy_command("band.conf"):
elif command == Phonon.phonopy_command("phonopy_disp.yaml --config band.conf"):
strain = loadfn("volume.json")["strain"]
if strain < 0:
frequencies = [4.2, 8.4]
Expand Down Expand Up @@ -459,8 +459,11 @@ def fake_run(command, stdout, stderr, text):
]),
3,
)
self.assertEqual(len([cmd for _, cmd in calls if cmd == Phonon.phonopy_command("band.conf")]), 3)
self.assertFalse(any(cmd == "phonopy band.conf --abacus" for _, cmd in calls))
self.assertEqual(
len([cmd for _, cmd in calls if cmd == Phonon.phonopy_command("phonopy_disp.yaml --config band.conf")]),
3,
)
self.assertFalse(any(cmd == "phonopy phonopy_disp.yaml --config band.conf --abacus" for _, cmd in calls))
self.assertTrue((work_dir / "volume.000000" / "mesh.yaml").is_file())
self.assertTrue((work_dir / "volume.000001" / "band.dat").is_file())
self.assertTrue("Temperature(K) SumGammaCv Sign" in ptr)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_phonon.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def fake_check_call(command, shell):
calls.append(command)
if command.startswith(Phonon.phonopy_setup_command("-f")):
Path("FORCE_SETS").write_text("fake force sets\n")
elif command == Phonon.phonopy_command("band.conf"):
elif command == Phonon.phonopy_command("phonopy_disp.yaml --config band.conf"):
Path("band.yaml").write_text("phonon: []\n")

try:
Expand All @@ -349,8 +349,8 @@ def fake_check_call(command, shell):
patch.object(Phonon, "write_band_dat", side_effect=self._write_band_dat_for_compute):
phonon._compute_lower(str(work_dir / "result.json"), [str(task_dir)], [])
self.assertEqual(calls[0], Phonon.phonopy_setup_command("-f task.0*/OUT.ABACUS/running_scf.log"))
self.assertEqual(calls[1], Phonon.phonopy_command("band.conf"))
self.assertFalse(any("--abacus" in command and command.startswith("phonopy band.conf") for command in calls))
self.assertEqual(calls[1], Phonon.phonopy_command("phonopy_disp.yaml --config band.conf"))
self.assertFalse(any("--abacus" in command and "band.conf" in command for command in calls))
finally:
shutil.rmtree(work_dir, ignore_errors=True)

Expand Down