-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'remote-main' into atomate2_jz_pheasy_anharmonic
- Loading branch information
Showing
388 changed files
with
206,522 additions
and
728 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,10 @@ jobs: | |
|
||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
test-non-ase: | ||
# prevent this action from running on forks | ||
if: github.repository == 'materialsproject/atomate2' | ||
|
||
services: | ||
local_mongodb: | ||
image: mongo:4.0 | ||
|
@@ -37,6 +40,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
split: [1, 2, 3] | ||
|
||
steps: | ||
- name: Check out repo | ||
|
@@ -72,20 +76,30 @@ jobs: | |
micromamba activate a2 | ||
uv pip install --upgrade 'git+https://github.com/materialsproject/pymatgen@${{ github.event.client_payload.pymatgen_ref }}' | ||
- name: Test | ||
- name: Test split ${{ matrix.split }} | ||
env: | ||
MP_API_KEY: ${{ secrets.MP_API_KEY }} | ||
|
||
# regenerate durations file with `pytest --store-durations --durations-path tests/.pytest-split-durations` | ||
# Note the use of `--splitting-algorithm least_duration`. | ||
# This helps prevent a test split having no tests to run, and then the GH action failing, see: | ||
# https://github.com/jerry-git/pytest-split/issues/95 | ||
# However this `splitting-algorithm` means that tests cannot depend sensitively on the order they're executed in. | ||
run: | | ||
micromamba activate a2 | ||
pytest --ignore=tests/ase --cov=atomate2 --cov-report=xml | ||
pytest --splits 3 --group ${{ matrix.split }} --durations-path tests/.pytest-split-durations --splitting-algorithm least_duration --ignore=tests/ase --cov=atomate2 --cov-report=xml | ||
- uses: codecov/codecov-action@v1 | ||
if: matrix.python-version == '3.10' && github.repository == 'materialsproject/atomate2' | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: coverage${{ matrix.split }} | ||
file: ./coverage.xml | ||
|
||
test-notebooks-and-ase: | ||
# prevent this action from running on forks | ||
if: github.repository == 'materialsproject/atomate2' | ||
|
||
# It seems like anything torch-dependent and tblite can't be installed in the same environment | ||
# without the tblite tests failing in CI, see, e.g.: | ||
# https://github.com/tblite/tblite/issues/116 | ||
|
@@ -143,7 +157,7 @@ jobs: | |
MP_API_KEY: ${{ secrets.MP_API_KEY }} | ||
run: | | ||
micromamba activate a2 | ||
pytest --cov=atomate2 --cov-report=xml tests/ase | ||
pytest --splits 1 --group 1 --cov=atomate2 --cov-report=xml tests/ase | ||
- uses: codecov/codecov-action@v1 | ||
if: matrix.python-version == '3.10' && github.repository == 'materialsproject/atomate2' | ||
|
@@ -172,7 +186,7 @@ jobs: | |
run: sphinx-build docs docs_build | ||
|
||
automerge: | ||
needs: [lint, test, docs] | ||
needs: [lint, test-non-ase, test-notebooks-and-ase, docs] | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,3 +72,4 @@ docs/reference/atomate2.* | |
*.doctrees* | ||
|
||
.ipynb_checkpoints | ||
.aider* |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
Name,Type,Maker | ||
`Static`_,job,:obj:`.StaticMaker` | ||
`Relax`_,job,:obj:`.RelaxMaker` | ||
`Tight Relax`_,job,:obj:`.TightRelaxMaker` | ||
`Dielectric`_,job,:obj:`.DielectricMaker` | ||
`Transmuter`_,job,:obj:`.TransmuterMaker` | ||
`HSE06 Static`_,job,:obj:`.HSEStaticMaker` | ||
`HSE06 Relax`_,job,:obj:`.HSERelaxMaker` | ||
`HSE06 Tight Relax`_,job,:obj:`.HSETightRelaxMaker` | ||
`Double Relax`_,flow,:obj:`.DoubleRelaxMaker` | ||
`Band Structure`_,flow,:obj:`.BandStructureMaker` | ||
`Uniform Band Structure`_,flow,:obj:`.UniformBandStructureMaker` | ||
`Line-Mode Band Structure`_,flow,:obj:`.LineModeBandStructureMaker` | ||
`HSE06 Band Structure`_,flow,:obj:`.HSEBandStructureMaker` | ||
`HSE06 Uniform Band Structure`_,flow,:obj:`.HSEUniformBandStructureMaker` | ||
`HSE06 Line-Mode Band Structure`_,flow,:obj:`.HSELineModeBandStructureMaker` | ||
`Relax and Band Structure`_,flow,:obj:`.RelaxBandStructureMaker` | ||
`Elastic Constant`_,flow,:obj:`.ElasticMaker` | ||
`Optics`_,flow,:obj:`.OpticsMaker` | ||
`HSE06 Optics`_,flow,:obj:`.HSEOpticsMaker` | ||
`Phonons`_,flow,:obj:`.PhononMaker` | ||
`Lobster`_,flow,:obj:`.VaspLobsterMaker` | ||
`Static`_,job,:obj:`~atomate2.vasp.jobs.core.StaticMaker` | ||
`Relax`_,job,:obj:`~atomate2.vasp.jobs.core.RelaxMaker` | ||
`Tight Relax`_,job,:obj:`~atomate2.vasp.jobs.core.TightRelaxMaker` | ||
`Dielectric`_,job,:obj:`~atomate2.vasp.jobs.core.DielectricMaker` | ||
`Transmuter`_,job,:obj:`~atomate2.vasp.jobs.core.TransmuterMaker` | ||
`HSE06 Static`_,job,:obj:`~atomate2.vasp.jobs.core.HSEStaticMaker` | ||
`HSE06 Relax`_,job,:obj:`~atomate2.vasp.jobs.core.HSERelaxMaker` | ||
`HSE06 Tight Relax`_,job,:obj:`~atomate2.vasp.jobs.core.HSETightRelaxMaker` | ||
`Double Relax`_,flow,:obj:`~atomate2.vasp.flows.core.DoubleRelaxMaker` | ||
`Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.BandStructureMaker` | ||
`Uniform Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.UniformBandStructureMaker` | ||
`Line-Mode Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.LineModeBandStructureMaker` | ||
`HSE06 Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.HSEBandStructureMaker` | ||
`HSE06 Uniform Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.HSEUniformBandStructureMaker` | ||
`HSE06 Line-Mode Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.HSELineModeBandStructureMaker` | ||
`Relax and Band Structure`_,flow,:obj:`~atomate2.vasp.flows.core.RelaxBandStructureMaker` | ||
`Elastic Constant`_,flow,:obj:`~atomate2.vasp.flows.elastic.ElasticMaker` | ||
`Optics`_,flow,:obj:`~atomate2.vasp.flows.core.OpticsMaker` | ||
`HSE06 Optics`_,flow,:obj:`~atomate2.vasp.flows.core.HSEOpticsMaker` | ||
`Phonons`_,flow,:obj:`~atomate2.vasp.flows.phonons.PhononMaker` | ||
`Lobster`_,flow,:obj:`~atomate2.vasp.flows.lobster.VaspLobsterMaker` |
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
Oops, something went wrong.